Monad
Implements:
Class Monad - Base abstract class.
Method Summary
| Public Methods | ||
| public abstract |
bind(f: MF<T, U>|D<T>, v: *): Promise<U> | Pr<U> | Error | boolean | void Binds transformation function and underlying value to the monad. |
|
| Protected Methods | ||
| protected |
Takes Error or string return Error. |
|
| protected |
Produces result after execution f(v). |
|
Public Methods
public abstract bind(f: MF<T, U>|D<T>, v: *): Promise<U> | Pr<U> | Error | boolean | void source
Binds transformation function and underlying value to the monad.
Params:
| Name | Type | Attribute | Description |
| f | MF<T, U>|D<T> | transformation function. |
|
| v | * | underlying value. |
Return:
| Promise<U> | Pr<U> | Error | boolean | void |