2 ms·
Rather than strict, one at a time down to arity-1, currying, I wrote a utility to wrap up functions so "bare parens" simply called the function, or one of its p
by Roboprog 10y ago
Rather than strict, one at a time down to arity-1, currying, I wrote a utility to wrap up functions so "bare parens" simply called the function, or one of its partially applied "derivatives", with however many arguments you passed, and an explicit "method" on the function had to be called (I think I called it "apply", but ended up using the alias "inject" so my Java coworkers understood the purpose).
Can you attach a property list to a function in Scheme? If so, maybe you could make a way for properly prepared functions to have an "apply" property. (like I said, it's been a LONG time since I did Lisp)
- qwertyuiop924 10y agoMy favorite Scheme has the ability, but like so much in schemeland, it's not formally specified. But cut effectively does the same thing, so what's the point? Then again, I don't totally understand your system, so I might just have gotten it wrong...