We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f207476 commit b50613fCopy full SHA for b50613f
iteration.md
@@ -419,6 +419,16 @@ See also [with-hash-table-iterator](http://www.lispworks.com/documentation/Hyper
419
;; ((A 1) (B 2) (C 3))
420
~~~
421
422
+To return a flat list, use `nconcing` instead of `collect`:
423
+
424
+~~~lisp
425
+(loop for x in '(a b c)
426
+ for y in '(1 2 3)
427
+ nconcing (list x y))
428
+(A 1 B 2 C 3)
429
+~~~
430
431
432
#### mapcar
433
~~~lisp
434
(mapcar (lambda (x y)
@@ -485,6 +495,8 @@ Return a flat list:
485
495
;; ((1) (1 2) (1 2 3))
486
496
487
497
498
+To return a flat list, use `nconcing` instead of the first `collect`.
499
488
500
#### iterate
489
501
490
502
0 commit comments