Options
All
  • Public
  • Public/Protected
  • All
Menu

Type class instances provided by default for Option.

Hierarchy

  • OptionInstances

Implements

Index

Properties

followedBy

followedBy: function

Type declaration

followedByL

followedByL: function

Type declaration

    • <A, B>(fa: OptionK<A>, fb: function): Option<B>
    • Type parameters

      • A

      • B

      Parameters

      Returns Option<B>

forEffect

forEffect: function

Type declaration

forEffectL

forEffectL: function

Type declaration

    • <A, B>(fa: OptionK<A>, fb: function): Option<A>
    • Type parameters

      • A

      • B

      Parameters

      Returns Option<A>

Static global

global: OptionInstances = new OptionInstances()

Methods

ap

coflatMap

  • coflatMap<A, B>(fa: OptionK<A>, ff: function): Option<B>

coflatten

  • coflatten<A>(fa: OptionK<A>): Option<Option<A>>

eqv

  • eqv(lh: Option<any>, rh: Option<any>): boolean
  • Parameters

    • lh: Option<any>
    • rh: Option<any>

    Returns boolean

flatMap

  • flatMap<A, B>(fa: OptionK<A>, f: function): Option<B>

map

  • map<A, B>(fa: OptionK<A>, f: function): Option<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: OptionK<A>
    • f: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Option<B>

map2

  • map2<A, B, Z>(fa: OptionK<A>, fb: OptionK<B>, f: function): Option<Z>
  • Type parameters

    • A

    • B

    • Z

    Parameters

    • fa: OptionK<A>
    • fb: OptionK<B>
    • f: function
        • (a: A, b: B): Z
        • Parameters

          • a: A
          • b: B

          Returns Z

    Returns Option<Z>

product

pure

  • pure<A>(a: A): Option<A>
  • Type parameters

    • A

    Parameters

    • a: A

    Returns Option<A>

tailRecM

  • tailRecM<A, B>(a: A, f: function): Option<B>
  • Type parameters

    • A

    • B

    Parameters

    • a: A
    • f: function
        • Parameters

          • a: A

          Returns OptionK<Either<A, B>>

    Returns Option<B>

unit

  • unit(): Option<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc