aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/symbol.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/symbol.spad.pamphlet')
-rw-r--r--src/algebra/symbol.spad.pamphlet4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/algebra/symbol.spad.pamphlet b/src/algebra/symbol.spad.pamphlet
index 5268bca3..404465fe 100644
--- a/src/algebra/symbol.spad.pamphlet
+++ b/src/algebra/symbol.spad.pamphlet
@@ -70,6 +70,8 @@ Symbol(): Exports == Implementation where
++ sample() returns a sample of %
Implementation ==> add
+ import %equal: (%,%) -> Boolean from Foreign Builtin
+
count: Reference(Integer) := ref 0
xcount: AssociationList(%, Integer) := empty()
istrings:PrimitiveArray(String) :=
@@ -131,7 +133,7 @@ Symbol(): Exports == Implementation where
convert(s:%):InputForm == convert(s pretend Symbol)$InputForm
convert(s:%):Symbol == s pretend Symbol
coerce(s:String):% == VALUES(INTERN(s)$Lisp)$Lisp
- x = y == EQUAL(x,y)$Lisp
+ x = y == %equal(x,y)
x < y == GGREATERP(y, x)$Lisp
coerce(x:%):OutputForm == outputForm(x pretend Symbol)
subscript(sy, lx) == script(sy, [lx, nil, nil(), nil(), nil()])