Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Curried bounded function works wrong. #232
It seems that curried bounded function looses it's context.
/* * Curried bounded function works wrong. */ assert = require \assert class A (@list = \middle) -> enclose: (head, tail) ~~> [head, @list, tail].join! a = new A fn = a.enclose \head curried = fn \tail plain = a.enclose \head, \tail # "Plain" and curried results should be equal: assert.equal curried, plain