The type of elements in the data structure
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.
Returns a string representation of an object.
Foldable type class represents data structures that can be folded to a summary value.
This interface provides the universal fold operations (foldLeft, foldRight) that work consistently across all data structures. The
foldmethod is intentionally excluded because it has different semantics for sum types vs collections:fold(onEmpty, onValue)— pattern matchfold(initial, fn)— left-reduce accumulatorEach type category defines its own
foldwith the appropriate signature.