:: (a -> a) -> [a] -> [a] package:ogma-extra

Apply a transformation only to the head of a list.
Apply a transformation only to the tail of a list.