|
definition: |
zip :: [a] -> [b] -> [(a, b)] zip [] _ = [] zip (_:_) [] = [] zip (x:xs) (y:ys) = (x, y) : zip xs ys |
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
| Joins two lists into one list of pairs. If one input list is shorter than the other, the additional elements of the longer list are discarded. |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({[]},_) |-> {[]} || ({:},{[]}) |-> {[]} || ({:},{:}) |-> {:}}
|
|
name: |
zip |
|
precedence: |
no precedence defined |
|
result-values: |
{:,[]}
|
|
signature: |
[a] -> [b] -> [(a, b)] |
|
solution-complete: |
operationally complete operation |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |