aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/LNAGG-.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-06-06 04:17:00 +0000
committerdos-reis <gdr@axiomatics.org>2010-06-06 04:17:00 +0000
commitf39c8c2ab9bf4ab06fefc09d75bcc95124d0acc1 (patch)
tree86e83ad35a5208b25a6bd0bdfd3e429df7713f7f /src/algebra/strap/LNAGG-.lsp
parent4f5eed96341cffc2c2e783b99cd61dde37570230 (diff)
downloadopen-axiom-f39c8c2ab9bf4ab06fefc09d75bcc95124d0acc1.tar.gz
* interp/compiler.boot (compRepeatOrCollect): Compile list
comprehension to %collect form.
Diffstat (limited to 'src/algebra/strap/LNAGG-.lsp')
-rw-r--r--src/algebra/strap/LNAGG-.lsp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/algebra/strap/LNAGG-.lsp b/src/algebra/strap/LNAGG-.lsp
index 52fa1610..9051a7b1 100644
--- a/src/algebra/strap/LNAGG-.lsp
+++ b/src/algebra/strap/LNAGG-.lsp
@@ -21,18 +21,16 @@
|LNAGG-;maxIndex;AI;6|))
(DEFUN |LNAGG-;indices;AL;1| (|a| $)
- (PROG (#0=#:G1411 |i| #1=#:G1412)
+ (PROG ()
(RETURN
- (SEQ (PROGN
- (LETT #0# NIL |LNAGG-;indices;AL;1|)
- (SEQ (LETT |i| (SPADCALL |a| (|getShellEntry| $ 9))
- |LNAGG-;indices;AL;1|)
- (LETT #1# (SPADCALL |a| (|getShellEntry| $ 10))
- |LNAGG-;indices;AL;1|)
- G190 (COND ((> |i| #1#) (GO G191)))
- (LETT #0# (CONS |i| #0#) |LNAGG-;indices;AL;1|)
- (LETT |i| (+ |i| 1) |LNAGG-;indices;AL;1|) (GO G190)
- G191 (EXIT (NREVERSE0 #0#))))))))
+ (LET ((|i| (SPADCALL |a| (|getShellEntry| $ 9)))
+ (#0=#:G1412 (SPADCALL |a| (|getShellEntry| $ 10)))
+ (#1=#:G1411 NIL))
+ (LOOP
+ (COND
+ ((> |i| #0#) (RETURN (NREVERSE #1#)))
+ (T (LETT #1# (CONS |i| #1#) |LNAGG-;indices;AL;1|)))
+ (LETT |i| (+ |i| 1) |LNAGG-;indices;AL;1|))))))
(DEFUN |LNAGG-;index?;IAB;2| (|i| |a| $)
(COND