Interface ITraversable<T>
interface ITraversable<T> { foldLeft<V>(initial: V): ((fn: ((acc: V,
val: T) => V)) => V); foldRight<V>(initial: V): ((fn: ((val: T,
acc: V) => V)) => V); }
Hierarchy-Diagram
Legend
interface
public method
Methods
foldLeft
- foldLeft<V>(initial: V): ((fn: ((acc: V, val: T) => V)) => V)
Returns ((fn: ((acc: V, val: T) => V)) => V)
- (fn: ((acc: V, val: T) => V)): V
Parameters
- fn: ((acc: V, val: T) => V)
- (acc: V, val: T): V
Returns V
Returns V
foldRight
- foldRight<V>(initial: V): ((fn: ((val: T, acc: V) => V)) => V)
Returns ((fn: ((val: T, acc: V) => V)) => V)
- (fn: ((val: T, acc: V) => V)): V
Parameters
- fn: ((val: T, acc: V) => V)
- (val: T, acc: V): V
Returns V
Returns V