I've been noodling around with Proc, Method, UnboundMethod and Symbol, and have come up with the following utilities for:
- function composition
- function memoization
- function currying
- symbol-to-method conversion (different than Symbol.to_proc)
I don't claim that any of this is actually useful. But it might be mind-expanding or character building.
I'm relatively new to Ruby, so comments from more experienced rubyists are more than welcome.
The code follows...
Continue reading Functional Programming Hacks for Ruby.



