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

Functor

Extends:

Container → Functor

Direct Subclass:

Left, Monad, Right

Functor

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

Static Public Methods

public static of(x: Object): Container source

Override:

Container#of

Params:

NameTypeAttributeDescription
x Object

is the value of the Container.

Return:

Container

Public Constructors

public constructor(x: Object): Functor source

Override:

Container#constructor

Params:

NameTypeAttributeDescription
x Object

is the value of the Functor.

Return:

Functor

Public Methods

public map(fn: function): Functor source

Params:

NameTypeAttributeDescription
fn function

is a function.

Return:

Functor