Zip3 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.Arrays
Package: Microsoft.Quantum.Standard
Warning
Zip3 has been deprecated. Please use Zipped3 function instead.
Given three arrays, returns a new array of 3-tuples such that each 3-tuple contains an element from each original array.
function Zip3<'T1, 'T2, 'T3> (first : 'T1[], second : 'T2[], third : 'T3[]) : ('T1, 'T2, 'T3)[]
Input
first : 'T1[]
An array containing values for the first element of each tuple.
second : 'T2[]
An array containing values for the second element of each tuple.
third : 'T3[]
An array containing values for the third element of each tuple.
Output : ('T1,'T2,'T3)[]
An array containing 3-tuples of the form (first[idx], second[idx], third[idx])
for
each idx
. If the three arrays are not of equal length, the output will
be as long as the shorter of the inputs.
Type Parameters
'T1
The type of the first array elements.
'T2
The type of the second array elements.
'T3
The type of the third array elements.
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