From: Brian Buckley Date: 2005-10-06T20:45:52+09:00 Subject: facets-0.7.2 Hello, When running the following code require 'facet/array/each_permutation' [1,2,3].each_permutation{|x| p x} I get an undefined method error for `permute' (error trace below) How does one add in the 'permute' method? Brian -------------------------------------------- NoMethodError: undefined method `permute' for [2, 3]:Array C:/ruby/lib/ruby/gems/1.8/gems/facets-0.7.2/lib/facet/array/each_permutation.rb:26:in `each_permutation' C:/ruby/lib/ruby/gems/1.8/gems/facets-0.7.2/lib/facet/array/each_permutation.rb:25:in `each_with_index' C:/ruby/lib/ruby/gems/1.8/gems/facets-0.7.2/lib/facet/array/each_permutation.rb:25:in `each' C:/ruby/lib/ruby/gems/1.8/gems/facets-0.7.2/lib/facet/array/each_permutation.rb:25:in `each_with_index' C:/ruby/lib/ruby/gems/1.8/gems/facets-0.7.2/lib/facet/array/each_permutation.rb:25:in `each_permutation' C:/eclipse/workspace/actuarial_support/zsandbox/array_stuff.rb:35:in `test_permutation'