TreeNode overview
Abstract base class shared by every tree node — only here to factor out the value field and its getter.
| Most code interacts with the concrete subclasses {@link “./TreeLeaf.js” | MTreeLeaf} and | |
| {@link “./TreeNonLeaf.js” | MTreeNonLeaf} or with the {@link “./Tree.js” | MTree} union. |
Table of contents
Getters
value
Returns the value field of self. Works on both leaf and non-leaf nodes.
Signature
export declare const value: <A>(self: Type<A>) => A
Models
Type (class)
Abstract base class holding a value of type A. Concrete subclasses are MTreeLeaf.Type<A> and MTreeNonLeaf.Type<_, A>.
Signature
export declare class Type<A> {
protected constructor({ value }: MTypes.Data<Type<A>>)
}
value (property)
Value of a node
Signature
readonly value: A
Module markers
moduleTag
Module tag.
Signature
export declare const moduleTag: "@parischap/effect-lib/Tree/TreeNode/"