Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Option

Callable

  • Option<A>(value: A): Option<A>

Index

Variables

Const empty

empty: none = none

Const exists

exists: has = has

Const isDefined

isDefined: isSome = isSome

Const isEmpty

isEmpty: isNone = isNone

Functions

ap

apply

filter

  • Type parameters

    • A

    Parameters

    • p: (a: A) => boolean
        • (a: A): boolean
        • Parameters

          • a: A

          Returns boolean

    • a: Option<A>

    Returns Option<A>

flatMap

flatten

forEach

  • forEach<A>(f: (a: A) => void, a: Option<A>): void
  • Type parameters

    • A

    Parameters

    • f: (a: A) => void
        • (a: A): void
        • Parameters

          • a: A

          Returns void

    • a: Option<A>

    Returns void

get

getOrElse

  • getOrElse<A>(x: A, a: Option<A>): A

has

  • has<A>(p: (a: A) => boolean, a: Option<A>): boolean
  • Type parameters

    • A

    Parameters

    • p: (a: A) => boolean
        • (a: A): boolean
        • Parameters

          • a: A

          Returns boolean

    • a: Option<A>

    Returns boolean

isNone

  • isNone<A>(fa: Option<A>): boolean

isSome

  • isSome<A>(fa: Option<A>): boolean

map

none

of

orElse

some

Generated using TypeDoc