Permalink
Browse files

Add fastest/parallel as an addon

  • Loading branch information...
Josep M. Bach
Josep M. Bach committed Aug 2, 2011
1 parent ab25805 commit 187ff9a40fc2371dd248ca7e86e78dbaab2c7804
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/fastest/parallel.rb
View
@@ -0,0 +1,2 @@
+class Array;def pmap;map{|x|Thread.start{yield x}}.map{|t|t.join.value};end;end
+$r='pmap';

0 comments on commit 187ff9a

Please sign in to comment.