Skip to content
Jason Barr edited this page Sep 22, 2021 · 2 revisions

Monad type for composing and abstracting away computations with side effects.

Constructors

  • Effect(fn)
  • Effect.of(value)

Instance Methods

  • map(fn)
  • chain(fn)
  • fold(fn)
  • ap(other)
  • run(x) - passes x to the wrapped effect and runs it
Clone this wiki locally