Returns the application of a partial function to the first element of this sequence for which the function is defined.
Returns the application of a partial function to the first element of this sequence for which the function is defined.
the partial function to test elements against and to apply to the first found element.
some found and mapped element, or none if no element applies to q
.
Returns the number of elements in this sequence that satisfy a predicate.
Returns the number of elements in this sequence that satisfy a predicate.
the predicate to test elements against.
the number of elements satisfying p
.
Returns a strict operations interface for this sequence.
Returns a strict operations interface for this sequence.
Returns true
if a predicate holds for some element of this sequence.
Returns true
if a predicate holds for some element of this sequence.
the predicate to test elements against.
true
if any element satisfies p
, otherwise false
.
Returns the first element of this sequence that satisfies a predicate.
Returns the first element of this sequence that satisfies a predicate.
the predicate to test elements against.
some found element, or none if no element satisfies p
.
Returns the repeated application of an associative binary operator between an identity value and all elements of this sequence.
Returns the repeated application of an associative binary operator between an identity value and all elements of this sequence.
the operator's identity element.
the associative binary operator to apply.
the folded value.
Returns the left-to-right application of a binary operator between a start value and all elements of this sequence.
Returns the left-to-right application of a binary operator between a start value and all elements of this sequence.
the starting value.
the binary operator to apply right-recursively.
the folded value.
Returns true
if a predicate holds for all elements of this sequence.
Returns true
if a predicate holds for all elements of this sequence.
the predicate to test elements against.
true
if all elements satisfy p
, otherwise false
.
Sequentially applies a function to each element of this sequence.
Sequentially applies a function to each element of this sequence.
the function to apply to each element.
Returns a non-strict operations interface for this sequence.
Returns a non-strict operations interface for this sequence.
Returns the repeated application of an associative binary operator between all elements of this non-empty sequence.
Returns the repeated application of an associative binary operator between all elements of this non-empty sequence.
the associative binary operator to apply.
the reduced value.
Returns the left-to-right application of a binary operator between all elements of this non-empty sequence.
Returns the left-to-right application of a binary operator between all elements of this non-empty sequence.
the binary operator to apply right-recursively.
the reduced value.
Returns the left-to-right application of a binary operator between all elements of this sequence.
Returns the left-to-right application of a binary operator between all elements of this sequence.
the binary operator to apply right-recursively.
some reduced value, or none if this sequence is empty.
Returns the repeated application of an associative binary operator between all elements of this sequence.
Returns the repeated application of an associative binary operator between all elements of this sequence.
the associative binary operator to apply.
some reduced value, or none if this sequence is empty.
General linear sequence operations.