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

Left

Extends:

ContainerFunctor → Left

Left

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

cata(leftFn: function, rightFn: function): Object

public
public
public
public

map(): Left

Inherited Summary

From class Container
public static
From class Functor
public static
public

Public Constructors

public constructor(x: Object): Left source

Override:

Functor#constructor

Params:

NameTypeAttributeDescription
x Object

is the value of the Left.

Return:

Left

Public Methods

public cata(leftFn: function, rightFn: function): Object source

Params:

NameTypeAttributeDescription
leftFn function

is a function.

rightFn function

is a function.

Return:

Object

public getOrElse(value: Object): Object source

Params:

NameTypeAttributeDescription
value Object

is an object.

Return:

Object

public isLeft(): boolean source

Return:

boolean

public isRight(): boolean source

Return:

boolean

public map(): Left source

Override:

Functor#map

Return:

Left