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.
Async map: awaits f for each element and collects the results into a Set, so equal results
collapse into one. Runs one call at a time by default; pass { concurrency: n } to allow up to
n at once, or "unbounded". A rejection rejects the result, and no further calls start.
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 every element satisfies the predicate. True for an empty collection.
Stops at the first element that fails. The counterpart of exists.
Tests whether any element satisfies the predicate. For single-value containers: tests the single value For collections: returns true if any element matches
Async flatMap. options.concurrency caps how many calls of f run at once: 1 runs them in order,
one after another; "unbounded" starts them all together. Results keep input order either way.
The default depends on the collection: List starts them all; Set runs them in order.
Optionaloptions: ConcurrencyOptionsFlattens 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
True if this set and other share no element.
True if every element of this set is in other. True for an empty set.
True if every element of other is in this set.
Takes elements from the start while the predicate is true.
Custom JSON serialization. Returns the canonical @functype-marked
envelope object so native JSON.stringify (and the rest of the JSON
toJSON protocol) emits a round-trip-able shape that
Serialization.deserialize can reconstruct.
Added in 1.2.0. Concrete types narrow the return to their specific marker/tag literals.
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.