From b072097c20373d0d6d7698b3d5593235ca2e2128 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Wed, 15 Jul 2020 09:09:51 -0500 Subject: inflate! example in README updated --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 728f6f1..86c9c49 100644 --- a/README.md +++ b/README.md @@ -236,14 +236,14 @@ Here are some simple examples of their use: (0 2 4 6 8) ;; generate (times N) for each N in the range 1 to 4 -> (collect (inflate! #'times (range :from 1 :to 4 :inclusive t))) -(0 0 1 0 1 2 0 1 2 3) - -;; In the above example, you can see that -;; first 0 is generated (times 1) -;; then 0 1 (times 2) -;; then 0 1 2 (times 3) -;; and finally 0 1 2 3 (times 4) +> (for x (inflate! #'times (range :from 1 :to 4 :inclusive t)) + (when (zerop x) (terpri)) + (princ x) (princ #\Space)) + +0 ; (times 1) +0 1 ; (times 2) +0 1 2 ; (times 3) +0 1 2 3 ; (times 4) ``` -- cgit v1.2.3