Map package:ghc-lib-parser

Apply a function to each element of a Stream, lazily
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]
[2,3,4]
We can map over the underlying type contained in an XRec while preserving the annotation as is.
map a function over the nodes of a Block
A strict mapBlock
map over a block, with different functions to apply to first nodes, middle nodes and last nodes respectively. The map is strict.