[parenscript-devel] Loops that return a value
Boris Smilga
boris.smilga at gmail.com
Thu Jan 17 12:50:53 UTC 2013
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.
More information about the parenscript-devel
mailing list