Sha256: 660303cd9d0b526db8fbdb551c39c1409e136d33934640738ee58ac40080c9cc

Contents?: true

Size: 282 Bytes

Versions: 17

Compression:

Stored size: 282 Bytes

Contents

(define cartesian-product 
   [ ] _ -> [ ]  
   [X | Y] Z -> (append (all-pairs-using-X X Z) (cartesian-product Y Z)))

(define all-pairs-using-X 
   _ [ ] -> [ ] 
   X [Y | Z] -> [[X Y] | (all-pairs-using-X X Z)]) 
   

   
    
      
    
      







 

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shen-ruby-0.15.1 shen/release/test_programs/cartprod.shen
shen-ruby-0.15.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.14.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.13.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.10.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.9.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.8.1 shen/release/test_programs/cartprod.shen
shen-ruby-0.8.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.7.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.6.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.5.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.4.1 shen/release/test_programs/cartprod.shen
shen-ruby-0.4.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.3.1 shen/release/test_programs/cartprod.shen
shen-ruby-0.3.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.2.0 shen/release/test_programs/cartprod.shen
shen-ruby-0.1.0 shen/release/test_programs/cartprod.shen