Noogλe
search input
Function of the day
Apply the function to each element in the list. Same as
map, but arguments flipped.Inputs
xs-
1. Function argument
f-
2. Function argument
Type
forEach :: [a] -> (a -> b) -> [b]Examples
lib.lists.forEachusage exampleforEach [ 1 2 ] (x: toString x ) => [ "1" "2" ]