On 16 Jan 2013, at 00:18, David Sargeant wrote:

That code doesn't work properly in parenscript, btw. It does not decrement.

(function () {
    var collect66 = [];
    for (var num = 10; num <= 1; num += 1) {
        collect66['push'](num);
    };
    return collect66;
})();

Sorry, my bad. The lower limit should be specified by the keyword :DOWNTO rather than :TO, and it's the same with the Common Lisp LOOP. (I see that Daniel already posted the correct version.)

 — B. Smilga.


_______________________________________________
parenscript-devel mailing list
[email protected]
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel

Reply via email to