Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Nano : Array#each_permutation

Reply
Thread Tools

Nano : Array#each_permutation

 
 
Jeff Wood
Guest
Posts: n/a
 
      09-01-2005
--------------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--


 
Reply With Quote
 
 
 
 
Trans
Guest
Posts: n/a
 
      09-02-2005
Hi Jeff,

Looks like you found a couple of bugs. I will fixed shortly. Thanks.

T.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apple iPod Nano Review at XYZ Computing Silverstrand Front Page News 0 04-29-2006 02:11 AM
"Call for Papers" in Nano Trands Journal Nano Java 0 12-20-2005 09:51 AM
(ANNOUNCE) Win an iPod nano in the Movies forums at Snarkish! Binky Melnik DVD Video 0 12-04-2005 12:02 AM
New Ipod Nano Just Released, Free (with only 2 referrals) blackboomer@gmail.com DVD Video 0 09-15-2005 11:45 PM
India to make 850 Gbytes nano tech dvds habshi DVD Video 20 06-07-2005 11:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57