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
          
   
Fields inherited from class Lens
name
 
Constructor Summary
LXfork(<Predicate> pred_c, <Predicate> pred_a, <Lens> pass_lens, <Lens> fail_lens)
           
 
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

LXfork

LXfork(<Predicate> pred_c, <Predicate> pred_a, <Lens> pass_lens, <Lens> fail_lens)

Method Detail

get

Object get(c)

putback

Object putback(a, c)


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