• Displays a binary tree on the console. 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) = ...

      a function that displays a single element

        • (a): string
        • Parameters

          • a: any

          Returns string

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

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

        Returns void