⍝ Test script:

      (compile notes) trip 'Apple'   'Pear'    ⍝ simple trip
Apple           
    Apple  Fruit
    Tomato Fruit
    Pear   Fruit
Pear            

      notes trip 'Apple'   'Banana'  ⍝ via fork
Apple           
    Apple  Fruit
    Tomato Fruit
Tomato          
    Tomato Fruit
    Banana Fruit
Banana          

      notes trip 'Grape'   'Pear'    ⍝ via 1-way
Grape           
    Grape  Fruit
    Tomato Fruit
Tomato          
    Tomato Fruit
    Pear   Fruit
Pear            

      notes trip 'Apple'   'Onion'   ⍝ line change
Apple            
    Apple  Fruit 
    Tomato Fruit 
Tomato           
    Tomato Veggie
    Onion  Veggie
Onion            

      notes trip 'Cabbage' 'Spinach' ⍝ via cross
Cabbage           
    Cabbage Veggie
    Onion   Veggie
Onion             
    Onion   Veggie
    Spinach Veggie
Spinach           

      notes trip 'S' 'C' 'G' 'A' 'B' ⍝ grand tour
Spinach           
    Spinach Veggie
    Onion   Veggie
Onion             
    Onion   Veggie
    Cabbage Veggie
Cabbage           
    Cabbage Veggie
    Onion   Veggie
    Lettuce Veggie
    Tomato  Veggie
Tomato            
    Tomato  Fruit 
    Pear    Fruit 
    Grape   Fruit 
Grape             
    Grape   Fruit 
    Tomato  Fruit 
    Apple   Fruit 
Apple             
    Apple   Fruit 
    Tomato  Fruit 
Tomato            
    Tomato  Fruit 
    Banana  Fruit 
Banana            

Back to: contents