LinkedFuncList
A class of linked lists that contain function data.
Constructor Summary
Public Constructor | ||
public |
Create a new LinkedFuncList instance. |
Member Summary
Public Members | ||
public get |
|
|
public get |
The function data for this list node. |
|
public set |
|
|
public get |
The number of nodes in this list, including this instance. |
|
public get |
The next node in the list. |
|
public set |
|
Private Members | ||
private |
_func: * |
|
private |
_next: * |
Method Summary
Public Methods | ||
public |
call all of the list's functions with start value. |
|
public |
call this list's functions mutating a start value through nodes' functions until done. |
|
public |
link(links: function | LinkedFuncList | object) adds some links to this list |
Public Constructors
Public Members
public get [Symbol.iterator]: GeneratorFunction source
public set next: null | LinkedFuncList source
Private Members
private _func: * source
private _next: * source
Public Methods
public async callAll(start: object): Promise source
call all of the list's functions with start value.
Params:
Name | Type | Attribute | Description |
start | object |
|
any start value |
public async chainCall(start: object, end: Function): Promise source
call this list's functions mutating a start value through nodes' functions until done.
public link(links: function | LinkedFuncList | object) source
adds some links to this list
parses each link:
- if link isnt already a LinkedFuncList instance, make a new one.
- if link is a function, the new instance contains that function.
- if link isn't a function, the new instance contains a function that returns link.
Params:
Name | Type | Attribute | Description |
links | function | LinkedFuncList | object |
|
the links to add |