Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Some<A>

Is an Option type that represents existence of a value.

Type parameters

  • A

Hierarchy

Index

Constructors

constructor

  • new Some(value: A): Some

Properties

value

value: A

Accessors

asEither

isNone

  • get isNone(): boolean

isSome

  • get isSome(): boolean

Methods

chain

  • chain<B>(ab: function): Option<B>

fold

  • fold<S>(S: S, some: function): S

getOrElse

  • getOrElse(a: A): A

map

  • map<B>(ab: function): Option<B>

Static fromEither

Static isNone

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

Static isSome

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

Static none

Static some

Generated using TypeDoc