Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael committed Jan 28, 2009
0 parents commit 34b191e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions curry.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

module Currify

def curry(*evaluated)


Proc.new do |*args|

clone = evaluated.dup
self.call(*(clone.concat(args).flatten))

end


end

end



2 changes: 2 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'curry'
Proc.send :include, Currify

0 comments on commit 34b191e

Please sign in to comment.