The type of value contained in the functor
Readonly
_Readonly
errorPattern matches over the Try, applying onFailure if Failure and onSuccess if Success
Function to apply if the Try is Failure
Function to apply if the Try is Success
The result of applying the appropriate function
Extracts the value unsafely
Returns the contained value or a default value
Returns the contained value or throws an error
Returns this container if it has a value, otherwise returns the alternative
Returns the contained value or null
Returns the contained value or undefined
Returns a string representation of an object.
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
Base interface for all functype data structures. This provides a standard contract with core functional programming traits.
Example