Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add fastest/parallel as an addon

  • Loading branch information...
commit 187ff9a40fc2371dd248ca7e86e78dbaab2c7804 1 parent ab25805
@txus authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/fastest/parallel.rb
View
2  lib/fastest/parallel.rb
@@ -0,0 +1,2 @@
+class Array;def pmap;map{|x|Thread.start{yield x}}.map{|t|t.join.value};end;end
+$r='pmap';
Please sign in to comment.
Something went wrong with that request. Please try again.