- 20 Aug, 2021 1 commit
-
-
Phoebe Goldman authored
this better matches previous behavior when RESULT-TYPE is not supplied.
-
- 19 Aug, 2021 2 commits
-
-
Phoebe Goldman authored
incl. minimal documentation and a pair of tests
-
Phoebe Goldman authored
-
- 23 May, 2021 1 commit
-
-
Robert Goldman authored
The use of count, which hijacks a function definition in the CL package, violates a design principle articulated in the manual and paper. Instead, only "counting" should be supported. When a program uses COUNT in the context of ITERATE, this will emit a deprecation warning. The intent is to remove support for COUNT as a synonym for COUNTING in the next version of ITERATE.
-
- 18 May, 2021 1 commit
-
-
Control flow clauses that return from an iterate form without executing the epilogue code (e.g. `never` and `leave`) currently do so by expanding into `(return-from ,*block-name*)`. For iterate forms without a user-provided name, the block will be named `nil`. This causes problems when used with other Common Lisp looping constructs such as `dolist`: (iterate (for i :from 0 :below 10) (dolist (x '(5 10 15)) (never (= i x)))) ; => T, but should be NIL This patch adds a separate `*loop-name*` variable that will be bound to a gensym for `NIL`-named blocks and makes the various epilogue-skipping code refer to that instead of `*block-name*`. Iterate forms *without* an explicit user-provided name will still have a separate `(block nil ...)` wrapping so users can still `(return ...)` as before. Before (simplified): (iterate (leave)) ; ==> (block nil (return-from nil)) (iterate foo (leave)) ; ==> (block foo (return-from nil)) After: (iterate (leave)) ; ==> (block nil (block #:ITERATE123 (return-from #:ITERATE123))) (iterate foo (leave)) ; ==> (block foo (return-from foo))
-
- 17 May, 2021 1 commit
-
-
Robert Goldman authored
In some contexts, ITERATE could incorrectly warn that it is assigning a default initial value of `NIL`. Here we filter out cases where supplying `NIL` is fine, and no warning should be raised.
-
- 03 Feb, 2021 1 commit
-
-
- 11 May, 2020 1 commit
-
-
Avoids unnecessary compiler warnings when using on Clozure Common Lisp.
-
- 25 Jan, 2020 1 commit
-
-
Breanndán Ó Nualláin authored
Previously the following code would fail since S was closed after the first ITER. (progn (iter (for line in-stream s) (for n below 2)) (iter (for line in-stream s) (for n below 2)))
-
- 16 Jan, 2018 1 commit
-
-
Attila Lendvai authored
Ignore-this: 4d63abf412919ed8b4dac0b285ddd678 reported and fixed by Ilya Perminov <iperminov@dwavesys.com>. darcs-hash:dc32a60ff626a15db2fcb187f43a7dc7225c3f35
-
- 23 Apr, 2014 1 commit
-
-
Douglas Katzman authored
make the #L reader macro standard conformant by not assuming anything about the representation of quasiquoted forms. Ignore-this: ccdda48acdf7b2033ac0f51ed48582fc darcs-hash:573cad9b4e213065cff16b638bf8578e9d8bdf61
-
- 29 Jan, 2014 2 commits
-
-
Jan Moringen authored
Ignore-this: a617d046d90816827d370d3bbf38d2df darcs-hash:ef4a1263e146ce1ef7df185b931c43e32f48048f
-
Attila Lendvai authored
Ignore-this: a05c5fbace98b282a464b829711e064f darcs-hash:eae27fe07c9c168afa9206922ac7a1182da218f8
-
- 08 May, 2012 1 commit
-
-
Russ Tyndall authored
Ignore-this: b7c4c6eec565dd435b8e9e5403fcb0a8 darcs-hash:c0561f61d4d97c2095ea985b576415abfab1e782
-
- 09 May, 2012 1 commit
-
-
Attila Lendvai authored
Ignore-this: 20cf116df585ffedfbe63ce7a4092249 Patched by Ilya Perminov darcs-hash:bea8d0e59cdf7c2afeb1f8e8b4f6dca255eeb469
-
- 19 Jan, 2011 1 commit
-
-
Attila Lendvai authored
Ignore-this: 97545988c4a3eab02434f222120b1a1 darcs-hash:1fe403ab6ead8c5755fc2011a99865832282c71e
-
- 25 May, 2007 1 commit
-
-
Joerg-Cyril Hoehle authored
if-first-time not declared obsolete documentation strings for (iter:display-iterate-clauses) complete darcs-hash:ec77c32317019efeb6b97b340d102bc00f2fe141
-
- 06 May, 2007 2 commits
-
-
Attila Lendvai authored
darcs-hash:ae236199ac83a8f41b6e2bfdccf3680f96bb84bb
-
Attila Lendvai authored
Fix sharpL reader, add :execute to the eval-when to make (load "iterate" :compiling t) work on clisp darcs-hash:6d36b215fd0e86140a6c516e1f298020449d507a
-
- 03 May, 2007 1 commit
-
-
hoehle authored
More precisely, FOR ON accepts dotted lists, FOR IN errors out. As a result, iterate::*list-end-test* was eliminated. Behaviour is now constant and does not depend on some special variable. Note: Documentation not yet updated, pending move to Texinfo. darcs-hash:5d57aef5caed4ed28274d852bd8626f19c3d0c94
-
- 04 Apr, 2007 1 commit
-
-
Joerg-Cyril Hoehle authored
darcs-hash:3f3b1d56b02e8b0498409a439d434ba2741a73d7
-
- 03 May, 2007 1 commit
-
-
Joerg-Cyril Hoehle authored
darcs-hash:07fba405cd24f8b6628a262c397d500114dbe842
-
- 26 Apr, 2007 1 commit
-
-
Attila Lendvai authored
darcs-hash:04807aabc6fcb4a46710b88c4c4009cf70f75506
-
- 15 Feb, 2007 1 commit
-
-
Attila Lendvai authored
Set *list-end-test* to 'endp instead of 'atom, so (iter (for foo :in something-non-list)) fails instead of silently exists darcs-hash:3572ca9749d4df380930eaaa59f112132951d8e5
-
- 25 Oct, 2006 1 commit
-
-
Henrik Hjelte authored
darcs-hash:9ecc45d1834bb9584f2d4fb2c3b57da2b7af0f77
-
- 31 Mar, 2006 3 commits
-
-
Attila Lendvai authored
Typical use is (if (first-...-p) ...) first-iteration-p will be t in the first loop while first-time-p will be t when first called, then nil. Hint: first-time-p is useful for the usual comma separated list printing problem. darcs-hash:e5383742b4d9363d41af7d276cc7db69b6b83f4b
-
Attila Lendvai authored
darcs-hash:65e6486308db578681137b5688533e0d6e0cbbeb
-
Attila Lendvai authored
darcs-hash:60aa3d2a88d512f3d26c6a6623c25721a02bbf4e
-