![]() |
|
Navigation |
Synopsis Make a list of pairs from two (three) lists of the same length.
Function
Usage
import List;
Description Also see unzip.
Examples
rascal>import List; ok rascal>zip([3, 1, 4], ["thirty", "ten", "forty"]); lrel[int first,str second]: [ <3,"thirty">, <1,"ten">, <4,"forty"> ] rascal>zip([3, 1, 4], ["thirty", "ten", "forty"], [300, 100, 400]); lrel[int first,str second,int third]: [ <3,"thirty",300>, <1,"ten",100>, <4,"forty",400> ] Questions
Question [1].
![]() ![]() ![]() |