• Convert a nilable into a real value, if it is nil.

    Type Parameters

    • T

    Parameters

    • nilable: Maybe<T>

      The subject to convert to an optional.

    • to: T

      The value to coalese to.

    Returns T

    The input value, if it wasn't nil, or the value to coalesce to.