Clarified readme regarding final-expr

This commit is contained in:
Linus 2021-05-21 10:22:21 +02:00
parent 6d305d416b
commit 9988434554

View file

@ -52,7 +52,7 @@ This of course also means accumulation is done before the body is executed, whic
``` ```
### Ability to be explicit about returned values ### Ability to be explicit about returned values
If you have no "final expression", denoted by => expr, one is added that returns all final values of the :acc clauses in the loop. If none is present, the return value is unspecified. If you have no "final expression", denoted by => expr, one is added that returns all final values of the :acc clauses in the loop. If no :acc clause or explicit final-expression is present is present, the return value is unspecified.
``` scheme ``` scheme
(loop ((:for a (up-from 1 5)) (loop ((:for a (up-from 1 5))