Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Either<A, B>

Created by rburson on 3/5/15.

Type parameters

  • A

  • B

Hierarchy

  • Either

Index

Properties

Accessors

Methods

Properties

Private _left

_left: A

Private _right

_right: B

Accessors

isLeft

  • get isLeft(): boolean
  • Returns boolean

isRight

  • get isRight(): boolean
  • Returns boolean

left

  • get left(): A
  • Returns A

right

  • get right(): B
  • Returns B

Methods

Static left

  • left<A, B>(left: A): Either<A, B>
  • Type parameters

    • A

    • B

    Parameters

    • left: A

    Returns Either<A, B>

Static right

  • right<A, B>(right: B): Either<A, B>
  • Type parameters

    • A

    • B

    Parameters

    • right: B

    Returns Either<A, B>

Generated using TypeDoc