|
definition: |
wmap :: (a -> (b,[Warning])) -> [a] -> ([b],[Warning])
wmap f ys = wmapper ys
where wmapper [] = ([],[])
wmapper (x:xs) =
let (p,q) = f x
(a,b) = wmapper xs
in (p : a,q ++ b)
|
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
map a list with a warning function, to get all warnings |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> {(,)}}
|
|
name: |
wmap |
|
precedence: |
no precedence defined |
|
result-values: |
{(,)}
|
|
signature: |
(a -> (b, [(CPP.ICode.ParsePos.Pos, String)])) -> [a] -> ([b], [(CPP.ICode.ParsePos.Pos, String)]) |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |