Search plugin
Manual
haskell.org
set:stackage
set:installed
package:base
category:Prelude
license:BSD-3-Clause
map -is:exact -is:exact -is:exact package:base is:exact
Packages
map
:: (a -> b) -> [a] -> [b]
base
Prelude
Data.List
GHC.OldList
map
f xs
is the list obtained by applying
f
to each element of
xs
, i.e.,
map f [x1, x2, ..., xn] == [f x1, f x2, ..., f xn] map f [x1, x2, ...] == [f x1, f x2, ...]
map
:: (a -> b) -> NonEmpty a -> NonEmpty b
base
Data.List.NonEmpty
Map a function over a
NonEmpty
stream.