[MacRuby-devel] [MacRuby] #745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And p_find_all causes an error.
MacRuby
ruby-noreply at macosforge.org
Sat Jun 12 06:38:44 PDT 2010
#745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And
p_find_all causes an error.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Comment(by caius@…):
As a workaround for now you can use {{{ Range#to_a }}} to convert it to an
{{{ Array }}} before calling {{{ p_map }}}
{{{
$ cat p_map_to_a.rb
require 'dispatch'
p (0..4).to_a.p_map { |i| 10**i }
}}}
{{{
$ macruby p_map_to_a.rb
[1, 10, 100, 1000, 10000]
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/745#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list