Home Reference Source Repository
import {Binding} from 'monad-ts/src/interfaces/binding.js'
public interface | source

Binding

Direct Implemented:

interface Binding<T>{

bind<T,U>(f: MF<T, U> | D<T>, v: any): Pr<U> | Error | boolean;

}

Method Summary

Public Methods
public

bind(f: MF<T, U>|D<T>, v: *): Pr<U> | Error | boolean

binds transformation function and underlying value to the monad.

Public Methods

public bind(f: MF<T, U>|D<T>, v: *): Pr<U> | Error | boolean source

binds transformation function and underlying value to the monad.

Params:

NameTypeAttributeDescription
f MF<T, U>|D<T>

transformation function.

v *

underlying value.

Return:

Pr<U> | Error | boolean