Creates a sink retrieving the first item that satisfies the predicate.
The type of items in the stream
The function to test each item
A sink that retrieves the first matching item or undefined
Creates a sink retrieving the first item that satisfies the predicate.