What is zip (functional programming?) - Stack Overflow
Zip is when you take two input sequences, and produce an output sequence in which every two elements from input sequences at the same position are combined using some function. An example in Haskell:
Input:
zipWith (+) [1, 2, 3] [4, 5, 6]
Output:
[5, 7, 9]
Read full article from What is zip (functional programming?) - Stack Overflow
No comments:
Post a Comment