[Facets] Hash#map-with_index?

41 views
Skip to first unread message

rogerdpack2

unread,
Jan 2, 2010, 8:16:21 PM1/2/10
to facets-u...@rubyforge.org
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>'
_______________________________________________
facets-universal mailing list
facets-u...@rubyforge.org
http://rubyforge.org/mailman/listinfo/facets-universal

Trans

unread,
Feb 26, 2010, 12:36:46 AM2/26/10
to facets-u...@rubyforge.org

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.

Reply all
Reply to author
Forward
0 new messages