Class LXfork
Object
|
+--Lens
|
+--LXfork
- class
LXfork
- extends Lens
Splits a concrete tree, passing part through one lens and part through
another. Those parts which pass predicates pred_c and pred_a will go
through pass_lens; whatever remains will be passed through fail_lens.
If either of pred_{a,c} are not actually predicates, they will be made
into predicates by means of the Predicate constructor.
Defined in lens.js
|
Field Summary |
Object |
name
|
name
Object name
LXfork
LXfork(<Predicate> pred_c, <Predicate> pred_a, <Lens> pass_lens, <Lens> fail_lens)
Parameters:
pred_c - A predicate over concrete-tree properties; those passing properties will be taken as a single object and passed through pass_lens in the get direction; in the putback direction, it will be used as the putback for pass_lens.
pred_a - A predicate over abstract-tree properties; those passing properties will be taken as a single object during putback, and will be passed (along with pred_c-passing properties) back through pass_lens's putback.
pass_lens - Used for passing properties
fail_lens - Used for failing properties
get
Object get(c)
putback
Object putback(a, c)
Documentation generated by
JSDoc on Wed Feb 14 15:36:01 2007