Bug: (for X previous Y ...) does not check existence of Y
Attila Lendvai
attila at lendvai.name
Tue Jan 16 15:15:38 UTC 2018
> Iterate silently ignores "for ... previous" clauses that reference undefined
> variables, e.g,
>
> (iter (repeat 2)
> (for x previous y initially 0)
> (collect x))
>
> returns (0 0).
>
>
> A patch to fix the bug is attached. Can someone apply it please.
pushed. thanks for the report and the fix!
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Precisely at the point when you begin to develop a conscience you
must find yourself at war with your society.”
— James Baldwin (1924–1987), 'A Talk for Teachers' (1963)
More information about the iterate-devel
mailing list