:: (a -> b) -> [a] -> [b] -package:brittany -package:ghc-lib-parser -package:base-prelude -package:relude -package:amazonka-core package:LambdaHack -is:exact

O(n). 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 (+1) [1, 2, 3]