aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/list.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/list.spad.pamphlet')
-rw-r--r--src/algebra/list.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/list.spad.pamphlet b/src/algebra/list.spad.pamphlet
index 93c7b627..e702f8f1 100644
--- a/src/algebra/list.spad.pamphlet
+++ b/src/algebra/list.spad.pamphlet
@@ -118,7 +118,7 @@ IndexedList(S:Type, mn:Integer): Exports == Implementation where
x = y ==
Qeq(x,y) => true
while not Qnull x and not Qnull y repeat
- Qfirst x ^=$S Qfirst y => return false
+ Qfirst x ~=$S Qfirst y => return false
x := Qrest x
y := Qrest y
Qnull x and Qnull y
@@ -1533,7 +1533,7 @@ AssociationList(Key:SetCategory, Entry:SetCategory):
first(l).entry
prev := l
curr := rest l
- while not empty? curr and first(curr).key ^= k repeat
+ while not empty? curr and first(curr).key ~= k repeat
prev := curr
curr := rest curr
empty? curr => "failed"