Delay operation
Namespace: Microsoft.Quantum.Canon
Package: Microsoft.Quantum.Standard
Applies a given operation with a delay.
operation Delay<'T, 'U> (op : ('T => 'U), arg : 'T, aux : Unit) : 'U
Description
Given an operation and an input to that operation, applies
the operation once an additional input is provided.
In particular, the expression Delay(op, arg, _) is an operation that
applies op to arg when called.
Expression Delay(op,arg,_) allows to delay the application of op.
Input
op : 'T => 'U
An operation to be applied.
arg : 'T
The input to which the operation is applied.
aux : Unit
Argument used to delay the application of operation by using partial application.
Output : 'U
Type Parameters
'T
The input type of the operation to be delayed.
'U
The return type of the operation to be delayed.
See Also
反馈
提交和查看相关反馈