>> all.class
=> Hash
>> all.map_with_index{|n| n[0]}
NoMethodError: undefined method `each_index' for #<Hash:0x154f620>
from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/
facets-2.8.1/lib/core/facets/enumerable/map_with_index.rb:12:in
`map_with_index'
from (irb):11
from E:/installs/ruby191p376/bin/irb:12:in `<main>'
_______________________________________________
facets-universal mailing list
facets-u...@rubyforge.org
http://rubyforge.org/mailman/listinfo/facets-universal
On Jan 2, 8:16 pm, rogerdpack2 <rogerdpa...@gmail.com> wrote:
> expected?
>
> >> all.class
> => Hash
> >> all.map_with_index{|n| n[0]}
>
> NoMethodError: undefined method `each_index' for #<Hash:0x154f620>
> from E:/installs/ruby191p376/lib/ruby/gems/1.9.1/gems/
> facets-2.8.1/lib/core/facets/enumerable/map_with_index.rb:12:in
> `map_with_index'
> from (irb):11
> from E:/installs/ruby191p376/bin/irb:12:in `<main>'
No. Good catch.
Fixed now. Thanks.