Anyone got any idea why chibi-scheme throws the error below while attempting to use the
chibi-loop up-from
function:
ERROR: car: not a pair: #<opcode cons>
ERROR in set-dk! on line 590 of file /usr/local/share/chibi/init-7.scm: cdr: not a pair: ()
I am using the syntax in the following way:
(import (chibi loop))
>(up-from 0 (to 20) (by 2))
You can't use
up-from
standalone like that. It only works inside of aloop
form: