Leaf

sealed interface Leaf : Tree(source)

Where a path ends.

Inheritors

Functions

Link copied to clipboard

The tree as a Mermaid flowchart: effects as boxes, leaves as terminals, responses on the edges, and a subtree that would be drawn exactly like one already drawn shares its node.

Link copied to clipboard

What a leaf says: the value returned, or the effect that ended the path.

Link copied to clipboard

Every path of the tree, in the order the branches were given.

Link copied to clipboard

The responses that opened no path of their own: at an effect, a response whose subtree has the shape of an earlier response's, the shape of a subtree being its effects by class and its leaves by outcome, with responses and effect arguments ignored. Such a response adds no effect and no outcome a reader could not reach through its sibling. The representatives of an infinite response type are well chosen when none of them is listed here.