10
Nov
09

ruby method currying


Just wanted to share this link with you. Basically, this is how you can curry a method in Ruby:


class Object
   def curry(method,*params)
      lambda { send method,*params }
   end
end

Thanks Marcos Toledo!


0 Responses to “ruby method currying”



  1. No Comments Yet

Leave a Reply