diff options
-rw-r--r-- | README.org | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,7 +39,7 @@ example apears at the end of the document, following the tutorial. > (defun all-primes () "Creates a generator that produces an infinite series of primes." - (filter! *'prime-p (range :from 2))) + (filter! #'prime-p (range :from 2))) > (take 10 (all-primes)) ;; (2 3 5 7 11 13 17 19 23 29) @@ -685,7 +685,7 @@ the previous section, you may be tempted to manually call =next= and =has-next-p= on your generators. If you must do this, you should use the =with-generator= macro: -#+end_srclisp +#+begin_src lisp > (with-generator (gen (seq "a1b2c3")) (when (gtwiwtg::has-next-p gen) |