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

    Function encode

    • Encode a string tree into a YAML-like indented format where indentation, by default set at 2 spaces, indicates node depth.

      You will find a curried version under the key curried.

      Parameters

      • self: Tree<string>

        The tree to be encoded.

      • Optionalindent: number

        Optional number of space characters that separate adjacent tree levels. Default is 2.

      Returns [string, ...string[]]

    Index

    Properties

    Properties

    curried: (indent?: number) => (self: Tree<string>) => [string, ...string[]]