map -package:base-compat -package:ghc is:exact package:base-compat-batteries

Map a function over a NonEmpty stream.