aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/SETAGG.lsp
blob: 3c8ad6189618b38f522783511147ac840c3ff3c2 (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
43
44
45
46
(/VERSIONCHECK 2) 

(DEFPARAMETER |SetAggregate;CAT| 'NIL) 

(DEFPARAMETER |SetAggregate;AL| 'NIL) 

(DEFUN |SetAggregate;| (|t#1|)
  (LET ((#0=#:G1372
            (|sublisV| (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                (COND
                  (|SetAggregate;CAT|)
                  (T (SETQ |SetAggregate;CAT|
                           (|Join| (|SetCategory|)
                                   (|Collection| '|t#1|)
                                   (|mkCategory| '|domain|
                                    '(((|part?| ((|Boolean|) $ $)) T)
                                      ((|brace| ($)) T)
                                      ((|brace| ($ (|List| |t#1|))) T)
                                      ((|set| ($)) T)
                                      ((|set| ($ (|List| |t#1|))) T)
                                      ((|intersect| ($ $ $)) T)
                                      ((|difference| ($ $ $)) T)
                                      ((|difference| ($ $ |t#1|)) T)
                                      ((|symmetricDifference| ($ $ $))
                                       T)
                                      ((|subset?| ((|Boolean|) $ $)) T)
                                      ((|union| ($ $ $)) T)
                                      ((|union| ($ $ |t#1|)) T)
                                      ((|union| ($ |t#1| $)) T))
                                    '((|partiallyOrderedSet| T))
                                    '((|Boolean|) (|List| |t#1|)) NIL))))))))
    (SETF (|shellEntry| #0# 0)
          (LIST '|SetAggregate| (|devaluate| |t#1|)))
    #0#)) 

(DEFUN |SetAggregate| (#0=#:G1373)
  (LET ((#1=#:G1374 (|assoc| (|devaluate| #0#) |SetAggregate;AL|)))
    (COND
      (#1# (CDR #1#))
      (T (PROGN
           (SETQ #1# (|SetAggregate;| #0#))
           (SETQ |SetAggregate;AL|
                 (|cons5| (CONS (|devaluate| #0#) #1#)
                          |SetAggregate;AL|))
           #1#)))))