Call operation
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.Convert
Package: Microsoft.Quantum.Standard
Calls a function with a given input.
operation Call<'Input, 'Output> (fn : ('Input -> 'Output), input : 'Input) : 'Output
Description
Given a function and an input to that function, calls the function and returns its output.
Input
fn : 'Input -> 'Output
A function to be called.
input : 'Input
The input to be passed to the function.
Output : 'Output
The result of calling fn
.
Type Parameters
'Input
'Output
Remarks
This operation is mainly useful for forcing a function to be called at a specific place within an operation, or for calling a function where an operation is expected.
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