• Computes a string displaying the contents of the optional value anOption. This function is curried, takes a printing function for the values as first parameter, and then returns a function taking the optional value to display.

    Parameters

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

      a function that displays a single element

        • (a): string
        • Parameters

          • a: any

          Returns string

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

    a function displaying an optional value

      • (a): string
      • Parameters

        Returns string