Why Nostr? What is Njump?
2024-06-04 22:15:59

zyd on Nostr: Today I learned that I don't understand Loop at all. (loop for y = 0 then z for x ...

Today I learned that I don't understand Loop at all.

(loop for y = 0 then z
for x from 1 to 5
sum 1 into z
finally (return (values y z)))
;; => 5
;; 5

(loop for x from 1 to 5
for y = 0 then z
sum 1 into z
finally (return (values y z)))
;; => 4
;; 5


#lisp
Author Public Key
npub184ejnrlc3p2whr4xpkxk72slwu9pfvtfg0zzv3wvk6963gtz2wnqw7w6ek