Const
Utility functions for working with sum-type Foldable data structures. These utilities use pattern-match fold semantics and are designed for sum types (Option, Either, Try) — not collections.
Checks if the sum type is empty
Calculates the size of the sum type (0 or 1)
Converts a sum type to an Either
Converts a sum type to a List
Converts a sum type to an Option
Utility functions for working with sum-type Foldable data structures. These utilities use pattern-match fold semantics and are designed for sum types (Option, Either, Try) — not collections.