diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-08-05 17:06:27 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-08-05 17:06:27 +0000 |
commit | 73f8a4754a43dfce194989457b54aceca5595979 (patch) | |
tree | cfeb10df9b9da9860083e3fe36c207d611996dc9 /src/cli/runtime/Tuple.cs | |
parent | 9213607263509ebc766e7bcf082784ec8ae19bfd (diff) |
renamed IArray, AnArray
Diffstat (limited to 'src/cli/runtime/Tuple.cs')
-rw-r--r-- | src/cli/runtime/Tuple.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/runtime/Tuple.cs b/src/cli/runtime/Tuple.cs index fa6dfda1..24f7f760 100644 --- a/src/cli/runtime/Tuple.cs +++ b/src/cli/runtime/Tuple.cs @@ -15,7 +15,7 @@ using System; namespace clojure.lang
{ -public class Tuple : AnArray{
+public class Tuple : APersistentArray{
readonly Object[] array;
@@ -42,7 +42,7 @@ override public Object nth(int i){ }
-override public IArray assocN(int i, Object val) {
+override public IPersistentArray assocN(int i, Object val) {
Object[] newArray = (Object[])array.Clone();
newArray[i] = val;
return new Tuple(newArray);
@@ -50,9 +50,9 @@ override public IArray assocN(int i, Object val) { override public bool Equals(Object key){
if(this == key) return true;
- if(key == null || !(key is IArray)) return false;
+ if(key == null || !(key is IPersistentArray)) return false;
- IArray a = (IArray) key;
+ IPersistentArray a = (IPersistentArray) key;
if(a.length() != array.Length)
return false;
|