Readonly_Readonly[toLeft-associative fold over all elements using an initial value and combining function. Unlike foldLeft (which is curried), this provides a convenient uncurried signature.
Converts the collection to an array.
Gets the first element of the collection.
Gets all elements except the last.
Gets the last element of the collection.
Gets all elements except the first.
Counts elements that satisfy the predicate. For single-value containers: returns 0 or 1 For collections: returns the count of matching elements
Drops elements from the start while the predicate is true.
Tests whether any element satisfies the predicate. For single-value containers: tests the single value For collections: returns true if any element matches
Flattens a collection of collections into a single collection.
Applies an effect function to each element. For single-value containers: applies to the value if present For collections: applies to each element
Takes elements from the start while the predicate is true.
Immutable Set. Covariant in A (
<out A>) — while Scala'sSet[A]is nominally invariant, functype's Set follows the same pragmatic covariance pattern as List: element-query methods (contains,has,remove) acceptunknown, and additions widen via<B>(B) => Set<A | B>.reduce/reduceRightfollow Scala'sreduce[B >: A]pattern with a defaultB = A.