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
          
   
Fields inherited from class Lens
name
 
Constructor Summary
LListFilter(<Predicate> pkeep, <Predicate> plose)
           
 
Method Summary
 Object get(c)
          
 Object putback(a, c)
          
 
Methods inherited from class Lens
error, getput, putget, putput, get_is, putback_is, get_throws, putback_throws
 

Field Detail

name

Object name

Constructor Detail

LListFilter

LListFilter(<Predicate> pkeep, <Predicate> plose)

Method Detail

get

Object get(c)

putback

Object putback(a, c)


Documentation generated by JSDoc on Wed Feb 14 15:36:01 2007