Functional programming transform stream.