|
From: | Drew Adams |
Subject: | RE: FW: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'? |
Date: | Thu, 7 Jan 2021 19:08:05 -0800 (PST) |
> The third arg is different from "the expression after `dotimes`" in one > important respect: the third arg can refer to the iteration variable > which will contain the "last" value: > (dotimes (i 10 i) nil) > will return 10. In Common Lisp, at least, both dolist and dotimes let the return expression you specify refer to the iteration variable. The difference is that for dolist the value at the end is nil; for dotimes it is the number of iterations.
[Prev in Thread] | Current Thread | [Next in Thread] |