CurriedOpA function
Warning
This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.
Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.
Namespace: Microsoft.Quantum.Canon
Package: Microsoft.Quantum.Standard
Returns a curried version of an operation on two inputs.
function CurriedOpA<'T, 'U> (op : (('T, 'U) => Unit is Adj)) : ('T -> ('U => Unit is Adj))
Input
op : ('T,'U) => Unit is Adj
An operation whose input is a pair.
Output : 'T -> 'U => Unit is Adj
An operation which accepts the first element of a pair and returns an operation which accepts as its input the second element of the original operation's input.
Type Parameters
'T
The type of the first component of a function defined on pairs.
'U
The type of the second component of a function defined on pairs.
Remarks
The following are equivalent:
op(x, y);
let curried = CurriedOp(op);
let partial = curried(x);
partial(y);
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for