Home Reference Source Repository
import Monad from 'stools/src/Monad.js'
public class | source

Monad

Extends:

ContainerFunctor → Monad

Monad Yo Ma! I'm a Monad

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

Inherited Summary

From class Container
public static
From class Functor
public static
public

Static Public Methods

public static of(x: Object): Container source

Override:

Functor#of

Params:

NameTypeAttributeDescription
x Object

is the value of the Container.

Return:

Container

Public Constructors

public constructor(x: Object): Monad source

Override:

Functor#constructor

Params:

NameTypeAttributeDescription
x Object

is the value of the Monad.

Return:

Monad

Public Methods

public bind(fn: function): Object source

Params:

NameTypeAttributeDescription
fn function

is a function.

Return:

Object