aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-04-30 09:42:31 +0000
committerdos-reis <gdr@axiomatics.org>2011-04-30 09:42:31 +0000
commit6661a9aa8e79dc934bde807293857f2dfc0eca6f (patch)
tree0f017b30dea95a80aff07f10c803e4494b767702 /src/boot
parent8470ab862150f003472a1bb05605972c34a2005e (diff)
downloadopen-axiom-6661a9aa8e79dc934bde807293857f2dfc0eca6f.tar.gz
cleanup
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/strap/utility.clisp11
-rw-r--r--src/boot/utility.boot4
2 files changed, 13 insertions, 2 deletions
diff --git a/src/boot/strap/utility.clisp b/src/boot/strap/utility.clisp
index 3d5aca1f..48ac0037 100644
--- a/src/boot/strap/utility.clisp
+++ b/src/boot/strap/utility.clisp
@@ -8,7 +8,16 @@
(EXPORT '(|objectMember?| |symbolMember?| |stringMember?| |charMember?|
|scalarMember?| |listMember?| |reverse| |reverse!|
|lastNode| |append!| |copyList| |substitute| |substitute!|
- |setDifference| |applySubst| |applySubst!| |remove|))
+ |setDifference| |applySubst| |applySubst!| |remove|
+ |removeSymbol|))
+
+(DECLAIM (FTYPE (FUNCTION ((|%List| |%Symbol|) |%Symbol|)
+ (|%List| |%Symbol|))
+ |removeSymbol|))
+
+(DECLAIM (FTYPE (FUNCTION ((|%List| |%Thing|) |%Thing|)
+ (% (|List| |%Thing|)))
+ |remove|))
(DEFUN |objectMember?| (|x| |l|)
(LOOP
diff --git a/src/boot/utility.boot b/src/boot/utility.boot
index 16a81067..1c32015b 100644
--- a/src/boot/utility.boot
+++ b/src/boot/utility.boot
@@ -35,7 +35,9 @@ namespace BOOTTRAN
module utility (objectMember?, symbolMember?, stringMember?,
charMember?, scalarMember?, listMember?, reverse, reverse!,
lastNode, append!, copyList, substitute, substitute!, setDifference,
- applySubst, applySubst!,remove)
+ applySubst, applySubst!,remove,removeSymbol) where
+ removeSymbol: (%List %Symbol, %Symbol) -> %List %Symbol
+ remove: (%List %Thing, %Thing) ->% List %Thing
--% membership operators