Documentation
for :: [a] -> (a -> b) -> [b] #
collect #
Arguments
:: (Ord k, Foldable t) | |
=> (a -> Maybe k) | key in collected map |
-> (a -> v) | value in collected map |
-> (v -> v -> v) | collapse function for value |
-> t a | something I can traverse, e.g. [a] |
-> Map k v | |