Applies the passed function f to each event that is emitted, producing a new transformed Event stream.
Note: f should be a pure function.