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
Pattern matches over the structure, applying specific handlers for each variant
The result of applying the appropriate function
Applies an effect function to each element. For single-value containers: applies to the value if present For collections: applies to each element
Returns the contained value or throws an error
Optional
error: ErrorOptional error to throw (implementations may have defaults)
The contained value
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
Interface for single-value containers like Option, Either, Try. Extends FunctypeBase with extraction methods and Pipe.