Home Reference Source Repository

References

Class Summary

Static Public Class Summary
public

Class AsyncFlow - for composing monads in an async flow (pipe), based on Promise.

public

Class Either - represents computation with two possibilities.

public

Class ErrorM - return given value or produce Error if take Error or get Error after execution of f(v).

public

Class Flow - for composing monads in a flow (pipe).

public

Class Identity - wraps underlying value into the monadic value and compute results from a monadic value.

public

Class List - transform every element of array with given function "contemporaneously".

public

Class Maybe - return given value or produce null if take nothing or get nothing after execution of f(v).

public abstract

Class Monad - Base abstract class.

public

Class State - it takes a state and returns an intermediate value and some new state value.

Interface Summary

Static Public Interface Summary
public

M

interface M<T>{

Function Summary

Static Public Function Summary
public

cast(arr: any, n: number): Array<any> | T[] | Error

Decreasing the dimension of an array by n.

public

clone(obj: T): T

The service to clone complex objects, including Map.

public

debounceTime(f: function, d: number, immediate: boolean): function(...args: any[])

Execute a function given a delay time.

public

equality(x: any, y: any): boolean

It checks equality of given arguments, arguments must be statically analyzable, therefore there are some constraints, look at examples to find them.

public

hash(str: string, pHash: number): number

Calculates a hash (32 bit).

public

wait(v: any, t: number): Promise<T>

Converts timeout in a Promise, resolved when specified amount of time passes.

Typedef Summary

Static Public Typedef Summary
public

D<T> - dispatcher's type function.

public

MF<T,U>: function(v: T): Pr<U>

MF<T, U> - transformation function's type.

public

Pr<U>: M<U> | U

Pr<U> - type of returned values.