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

    Function leafF

    • Create a leaf from its value.

      Type Parameters

      • A

        The underlying type of the tree. For example, in a numeric tree it would be number.

      Parameters

      • value: A

      Returns TreeF.TreeF<A>

      import {TreeF} from 'effect-tree'

      expect(TreeF.leafF(43)).toEqual({node: 43})