• Displays a tree on the console. This function is curried, takes a printing function as first parameter, and then returns a function taking the root of a tree to display.

    Parameters

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

      a function that displays a single element

        • (a): string
        • Parameters

          • a: any

          Returns string

    Returns ((a: TreeI<any>) => void)

    • a function displaying a tree
      • (a): void
      • Parameters

        Returns void