Logo - Reduction Redux

So, after more searching, it turns out that (PROC INPUT INPUT ...) is an explicit calling convention in Logo and Lisp, so I can't just throw a reduction wrapper around otherwise naive function implementations - I do need to evaluate arguments (based on the arity of the function) or pass them all in. The code is uglier, but... well, it works.

Internally, however, I'm now using the new JavaScript 1.6 and 1.8 functions like Array.reduce internally for the implementation, and I've added MAP, REDUCE and FILTER procedures as well.

Comments