aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/STAGG.lsp
blob: 0feed81ea6761d602ad928347f94da75d945c132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
(/VERSIONCHECK 2) 

(DEFPARAMETER |StreamAggregate;CAT| 'NIL) 

(DEFPARAMETER |StreamAggregate;AL| 'NIL) 

(DEFUN |StreamAggregate;| (|t#1|)
  (PROG (#0=#:G1405)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|StreamAggregate;CAT|)
                         ('T
                          (LETT |StreamAggregate;CAT|
                                (|Join| (|UnaryRecursiveAggregate|
                                         '|t#1|)
                                        (|LinearAggregate| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|explicitlyFinite?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|possiblyInfinite?|
                                             ((|Boolean|) $))
                                            T))
                                         NIL '((|Boolean|)) NIL))
                                . #1=(|StreamAggregate|))))) . #1#)
        (|setShellEntry| #0# 0
            (LIST '|StreamAggregate| (|devaluate| |t#1|))))))) 

(DEFUN |StreamAggregate| (#0=#:G1406)
  (LET (#1=#:G1407)
    (COND
      ((SETQ #1# (|assoc| (|devaluate| #0#) |StreamAggregate;AL|))
       (CDR #1#))
      (T (SETQ |StreamAggregate;AL|
               (|cons5| (CONS (|devaluate| #0#)
                              (SETQ #1# (|StreamAggregate;| #0#)))
                        |StreamAggregate;AL|))
         #1#))))