Creates a sink reporting whether some item matches a predicate.
Items are tested in source order and consumption stops at the first match, leaving the rest of the feed unconsumed; an empty feed reports no match.
The type of items in the feed
The function testing each item
A sink resolving to true if at least one item matches predicate; false otherwise
true
predicate
false
await pipe( (items(1, 2, 3, 4, 5)) (some(n => n > 3))); // true Copy
await pipe( (items(1, 2, 3, 4, 5)) (some(n => n > 3))); // true
Creates a sink reporting whether some item matches a predicate.
Items are tested in source order and consumption stops at the first match, leaving the rest of the feed unconsumed; an empty feed reports no match.