|
definition: |
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c] zipWith _ [] _ = [] zipWith _ (_:_) [] = [] zipWith f (x:xs) (y:ys) = f x y : zipWith f xs ys |
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
| Joins two lists into one list by applying a combination function to corresponding pairs of elements. Thus `zip = zipWith (,)` |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{[]},_) |-> {[]} || (_,{:},{[]}) |-> {[]} || (_,{:},{:}) |-> {:}}
|
|
name: |
zipWith |
|
precedence: |
no precedence defined |
|
result-values: |
{:,[]}
|
|
signature: |
(a -> b -> c) -> [a] -> [b] -> [c] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |