Options
All
  • Public
  • Public/Protected
  • All
Menu

Module OptLazy<T>

An optionally lazy value of type T, can be directly a value T, or a function of arity 0 that returns a value of type T

Type parameters

  • T

    the value type

Index

Functions

Functions

toLazy

  • Returns an always lazy value of type Lazy<T> from an optionally lazy value of type OptLazy<T>

    Type parameters

    • T

      the value type

    Parameters

    • optLazy: OptLazy<T>

      the optionally lazy input

    Returns Lazy<T>

toValue

  • toValue<T>(optLazy: OptLazy<T>): T
  • Returns the value of an optionally lazy value of type OptLazy<T>

    Type parameters

    • T

      the value type

    Parameters

    • optLazy: OptLazy<T>

      the optionally lazy input

    Returns T

Generated using TypeDoc