effect-tree - v1.0.36
    Preparing search index...

    Function getValue

    • Get the value of a node.

      Type Parameters

      • A

        Underlying tree type.

      Parameters

      • self: Tree<A>

        the tree to query.

      Returns A

      Value of the tree root node.

      import * as Tree from 'effect-tree'

      const tree = Tree.of(1)

      expect(Tree.getValue(tree)).toBe(1)