Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • L

  • A

Hierarchy

  • OptionEither

Index

Constructors

constructor

  • new OptionEither<L, A>(value: Option<Either<L, A>>): OptionEither<L, A>

Properties

Readonly _A

_A: A

Readonly _L

_L: L

Readonly _URI

_URI: "OptionEither"

Readonly value

value: Option<Either<L, A>>

Methods

ap

ap_

chain

fold

  • fold<R>(lf: (l: L) => R, rf: (r: A) => R): Option<R>
  • Type parameters

    • R

    Parameters

    • lf: (l: L) => R
        • (l: L): R
        • Parameters

          • l: L

          Returns R

    • rf: (r: A) => R
        • (r: A): R
        • Parameters

          • r: A

          Returns R

    Returns Option<R>

getOrElse

  • getOrElse(a: A): A

getOrElseL

  • getOrElseL(a: Lazy<A>): A

isLeft

  • isLeft(): boolean

isNone

  • isNone(): boolean

isRight

  • isRight(): boolean

isSome

  • isSome(): boolean

map

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class with type parameter
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Enumeration

Generated using TypeDoc