Class LLength
Object
|
+--Lens
|
+--LLength
- class
LLength
- extends Lens
Gets the length of a list. On putback, it configurably adds and deletes
elements from the list on putback.
Defined in lens.js
|
Field Summary |
Object |
name
|
name
Object name
LLength
LLength(<'beginning',> take_from, <'beginning',> add_to, d)
Parameters:
take_from - Where to take elements from that would make the list too long. The default is 'end'.
add_to - Where to add additional elements for compensatory lengthening; default is 'end'. If take_from is specified but no value is given for add_to, then it defaults to take_from's value.
d - The value to use during lengthening instead of undefined.
get
Object get(c)
putback
Object putback(a, c)
Documentation generated by
JSDoc on Wed Feb 14 15:36:01 2007