Modifies each value by passing it to the function. This is the pattern library's equivalent of Collection: -collect.
The message collect
returns a Pcollect when passed to a pattern. Note that because the pattern is converted to a Stream (more precisely a FuncStream) the collect function is evaluated for one item each time the message next
is passed.