The type of value contained
The type tag for pattern matching
Counts elements that satisfy the predicate. For single-value containers: returns 0 or 1 For collections: returns the count of matching elements
Tests whether any element satisfies the predicate. For single-value containers: tests the single value For collections: returns true if any element matches
Applies an effect function to each element. For single-value containers: applies to the value if present For collections: applies to each element
Pattern matches against this data structure, applying handlers for each variant based on tag. Similar to fold but with stronger type safety for tag-based variants.
The return type is inferred from the pattern handlers when not explicitly specified.
The result of applying the matching handler function
Returns this container if it has a value, otherwise returns the alternative container.
The alternative may carry a different type; the result widens to Extractable<T | T2>.
The alternative container
This container or the alternative
Extract the value or throw an error
Optionalerror: ErrorOptional custom error to throw. If not provided, uses type-appropriate default error
The contained value
Interface for single-value containers like Option, Either, Try. Extends FunctypeBase with extraction methods and Pipe.