#745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And
p_find_all causes an error.
----------------------------------+-----------------------------------------
Reporter: watson1...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Comment(by ca...@…):
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel