summaryrefslogtreecommitdiff
path: root/src/cli/runtime/ASeq.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/runtime/ASeq.cs')
-rw-r--r--src/cli/runtime/ASeq.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/cli/runtime/ASeq.cs b/src/cli/runtime/ASeq.cs
index 252a69f6..112c9f73 100644
--- a/src/cli/runtime/ASeq.cs
+++ b/src/cli/runtime/ASeq.cs
@@ -26,14 +26,16 @@ int _hash = -1;
}
override public bool Equals(Object obj) {
- if(!(obj is Sequential))
- return false;
- for(ISeq s = seq(), ms = ((IPersistentCollection)obj).seq();s!=null;s = s.rest(), ms = ms.rest())
- {
- if(ms == null || !RT.equal(s.first(),ms.first()))
+ if(!(obj is Sequential))
+ return false;
+ ISeq ms = ((IPersistentCollection)obj).seq();
+ for(ISeq s = seq();s!=null;s = s.rest(), ms = ms.rest())
+ {
+ if(ms == null || !RT.equal(s.first(),ms.first()))
+ return false;
+ }
+ if(ms.rest() != null)
return false;
- }
-
return true;
}