Nano : Array#each_permutation

J

Jeff Wood

--------------030909080907070709010107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

More fun with nano.

Running Ruby 1.8.2-15 under windows.

I have the nano gem 0.8.2 installed.

trying the following under irb:

require 'nano/full'

gives back an error:

LoadError: No such file to load -- nano/float/approx?

... apparently coming from line 95 of nano/full.rb

Additionally, trying to do the following under irb:

require 'nano/array'
require 'nano/enumerable'

a = %w( a b c d e )
puts a.each_permutation

gives back an error:

NoMethodError: undefined method 'permute' for ["b","c","d","e","f"]:Array
from .../nano/enumerable/each_permutation.rb:28 : in 'each_permutation'

I did check docs and I just don't see what I'm doing wrong... Any
enlightenment?

--------------030909080907070709010107--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top