Class LListFilter
Object
|
+--Lens
|
+--LListFilter
- class
LListFilter
- extends Lens
Filters a list, removing items that fail to matche a predicate. Two
predicates must be given in order for putback to work correctly: edits to
selected items should propagate appropriately. This propagation is done on
a first-come, first-served basis -- the first item of the abstract tree
replaces first item that matches pkeep in the concrete tree. If there are
more items in the abstract tree than items that match pkeep, then the extra
items are added at the end. If there are fewer items in a than those that
match pkeep in c, then the last items in c are deleted.
Defined in lens.js
|
Field Summary |
Object |
name
|
name
Object name
LListFilter
LListFilter(<Predicate> pkeep, <Predicate> plose)
Parameters:
pkeep - A predicate that matches the list-items to keep
plose - A predicate that matches the list-items to filter
get
Object get(c)
putback
Object putback(a, c)
Documentation generated by
JSDoc on Wed Feb 14 15:36:01 2007