Options
All
  • Public
  • Public/Protected
  • All
Menu

Type class instances provided by default for Either.

Type parameters

  • L

Hierarchy

  • EitherInstances

Implements

Index

Properties

followedBy

followedBy: function

Type declaration

    • Type parameters

      • A

      • B

      Parameters

      Returns Either<L, B>

followedByL

followedByL: function

Type declaration

    • <A, B>(fa: EitherK<L, A>, fb: function): Either<L, B>
    • Type parameters

      • A

      • B

      Parameters

      Returns Either<L, B>

forEffect

forEffect: function

Type declaration

    • Type parameters

      • A

      • B

      Parameters

      Returns Either<L, A>

forEffectL

forEffectL: function

Type declaration

    • <A, B>(fa: EitherK<L, A>, fb: function): Either<L, A>
    • Type parameters

      • A

      • B

      Parameters

      Returns Either<L, A>

Static global

global: EitherInstances<any> = new EitherInstances()

Methods

ap

coflatMap

  • coflatMap<A, B>(fa: EitherK<L, A>, ff: function): Either<L, B>

coflatten

  • coflatten<A>(fa: EitherK<L, A>): Either<L, Either<L, A>>

eqv

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

    • lh: Either<L, any>
    • rh: Either<L, any>

    Returns boolean

flatMap

  • flatMap<A, B>(fa: HK<Either<L, any>, A>, f: function): HK<Either<L, any>, B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: HK<Either<L, any>, A>
    • f: function
        • (a: A): HK<Either<L, any>, B>
        • Parameters

          • a: A

          Returns HK<Either<L, any>, B>

    Returns HK<Either<L, any>, B>

map

  • map<A, B>(fa: EitherK<L, A>, f: function): Either<L, B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: EitherK<L, A>
    • f: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Either<L, B>

map2

  • map2<A, B, Z>(fa: EitherK<L, A>, fb: EitherK<L, B>, f: function): Either<L, Z>
  • Type parameters

    • A

    • B

    • Z

    Parameters

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

          • a: A
          • b: B

          Returns Z

    Returns Either<L, Z>

product

  • product<A, B>(fa: EitherK<L, A>, fb: EitherK<L, B>): Either<L, [A, B]>

pure

  • pure<A>(a: A): Either<L, A>
  • Type parameters

    • A

    Parameters

    • a: A

    Returns Either<L, A>

tailRecM

  • tailRecM<A, B>(a: A, f: function): HK<Either<L, any>, B>
  • Type parameters

    • A

    • B

    Parameters

    • a: A
    • f: function
        • (a: A): HK<Either<L, any>, Either<A, B>>
        • Parameters

          • a: A

          Returns HK<Either<L, any>, Either<A, B>>

    Returns HK<Either<L, any>, B>

unit

  • unit(): Either<L, 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