Creates a sink retrieving the first matching item of the feed, failing if none does.
Items are tested in source order and consumption stops at the first match, leaving the rest of the feed
unconsumed.
A feed carrying no matching item fails the sink instead of resolving to undefined as find does, so the
item handed back is usable as is, with no check to tell a missing item from an undefined item the feed
legitimately carries.
Note
Incremental: items are drawn only until one matches, so an infinite feed completes unless none does.
Streaming: items are tested one at a time, none retained.
Creates a sink retrieving the first matching item of the feed, failing if none does.
Items are tested in source order and consumption stops at the first match, leaving the rest of the feed unconsumed.
A feed carrying no matching item fails the sink instead of resolving to
undefinedas find does, so the item handed back is usable as is, with no check to tell a missing item from anundefineditem the feed legitimately carries.