Zipped4 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
Given four arrays, returns a new array of 4-tuples such that each 4-tuple contains an element from each original array.
function Zipped4<'T1, 'T2, 'T3, 'T4> (first : 'T1[], second : 'T2[], third : 'T3[], fourth : 'T4[]) : ('T1, 'T2, 'T3, 'T4)[]
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.
fourth : 'T4[]
An array containing values for the fourth element of each tuple.
Output : ('T1,'T2,'T3,'T4)[]
An array containing 4-tuples of the form (first[idx], second[idx], third[idx], fourth[idx])
for
each idx
. If the four 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.
'T4
The type of the fourth 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