ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
Module: | Prelude |
---|---|
Function: | zip3 |
Type: | [a] -> [b] -> [c] -> [(a,b,c)] |
Description: | makes a list of tuples, each tuple conteining elements of all three lists occuring at the same position |
Related: | unzip, unzip3, zip, zipWith, zipWith3 |
Input: zip3 [1,2,3] [9,8,7] [-3,-2,-1]
Output: [(1,9,-3),(2,8,-2),(3,7,-1)]
Input: zip3 [1,2,3,4,5] [9,8] [1,1,1,1,1]
Output: [(1,9,1),(2,8,1)]
Input: zip3 (take 5 (iterate (2*) 10)) (take 5 (iterate (2/) 10)) (take 5 (repeat 0))
Output: [(10,10.0,0),(20,0.2,0),(40,10.0,0),(80,0.2,0),(160,10.0,0)]