aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/tree.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-08-14 00:07:49 +0000
committerdos-reis <gdr@axiomatics.org>2011-08-14 00:07:49 +0000
commit1734e62de427defcd090a95bc8b3b879c67d3fbf (patch)
tree85d39a106d392c37439d64c001377e0b2deaf6ee /src/algebra/tree.spad.pamphlet
parente3addef7d02f432fad8fc0886880f59c40000a5a (diff)
downloadopen-axiom-1734e62de427defcd090a95bc8b3b879c67d3fbf.tar.gz
Remove redundant capsule-level declarations
Diffstat (limited to 'src/algebra/tree.spad.pamphlet')
-rw-r--r--src/algebra/tree.spad.pamphlet8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/algebra/tree.spad.pamphlet b/src/algebra/tree.spad.pamphlet
index be99d1f7..5a56673f 100644
--- a/src/algebra/tree.spad.pamphlet
+++ b/src/algebra/tree.spad.pamphlet
@@ -55,10 +55,6 @@ Tree(S: SetCategory): T==C where
cycleTreeMax ==> 5
Rep := Union(node:Record(value: S, args: List %),empty:"empty")
- t:%
- br:%
- s: S
- ls: List S
empty? t == t case empty
empty() == ["empty"]
children t ==
@@ -89,8 +85,8 @@ Tree(S: SetCategory): T==C where
for c in children t repeat map!(fn, c)
t
tree(s,lt) == [[s,lt]]
- tree(s) == [[s,[]]]
- tree(ls) ==
+ tree(s: S) == [[s,[]]]
+ tree(ls: List S) ==
empty? ls => empty()
tree(first ls, [tree s for s in rest ls])
value t ==