• Returns a string describing the tree, on a single line. This function is curried, takes a printing function as first parameter, and then returns a function taking the binary tree to display.

    Parameters

    • dispFun: ((a: any) => string) = anyToString

      a function that displays a single element

        • (a): string
        • Parameters

          • a: any

          Returns string

    Returns ((a: Tree<any>) => string)

    a function displaying a binary tree

      • (a): string
      • Parameters

        Returns string