Add a chomp function.

- Mostly useful in pipelines.
Implement `apply`.

- `map` is an alias function.