3 ms·
I wrote a similar thing a few months ago. https://github.com/stefanpenner/rebinder/blob/master/lib/rebinder.rb https://github.com/stefanpenner/rebinder/blob/ma
by burke 15y ago
I wrote a similar thing a few months ago.
https://github.com/stefanpenner/rebinder/blob/master/lib/rebinder.rb https://github.com/stefanpenner/rebinder/blob/master/lib/reb...
My syntax was far more sarcastic and less legitimate, however. eg:
add = Fixnum.☃.+
add3 = add.∂(3)
assert_equal 7, add3.☏(4)
The fun bit is that this implementation doesn't actually use lambdas, but rather (Unbound)Method instances.