summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-08-04 22:31:21 +0000
committerRich Hickey <richhickey@gmail.com>2006-08-04 22:31:21 +0000
commitb47c234ac5a398894c8f3ce5dc7c06a5e7926e10 (patch)
tree198470083f9e1088315c8ce917904c9a2cae2ab7 /src/cli
parent8c2c0ea39e31c05863a5f0d07fb3916a345c3da8 (diff)
renamed ISequential to IPersistentCollection
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/runtime/Cons.cs2
-rw-r--r--src/cli/runtime/IArray.cs2
-rw-r--r--src/cli/runtime/IPersistentCollection.cs (renamed from src/cli/runtime/ISequential.cs)2
-rw-r--r--src/cli/runtime/IPersistentMap.cs2
-rw-r--r--src/cli/runtime/PersistentArrayMap.cs2
-rw-r--r--src/cli/runtime/PersistentHashtableMap.cs2
-rw-r--r--src/cli/runtime/PersistentListIdentityMap.cs2
-rw-r--r--src/cli/runtime/PersistentListMap.cs2
-rw-r--r--src/cli/runtime/PersistentTreeMap.cs2
-rw-r--r--src/cli/runtime/RT.cs4
10 files changed, 11 insertions, 11 deletions
diff --git a/src/cli/runtime/Cons.cs b/src/cli/runtime/Cons.cs
index 935f3daa..18c2a656 100644
--- a/src/cli/runtime/Cons.cs
+++ b/src/cli/runtime/Cons.cs
@@ -15,7 +15,7 @@ using System;
namespace clojure.lang
{
-public class Cons : ISeq, ISequential
+public class Cons : ISeq, IPersistentCollection
{
private readonly Object _first;
diff --git a/src/cli/runtime/IArray.cs b/src/cli/runtime/IArray.cs
index b5bcb4b9..8602b1c0 100644
--- a/src/cli/runtime/IArray.cs
+++ b/src/cli/runtime/IArray.cs
@@ -13,7 +13,7 @@ using System;
namespace clojure.lang
{
-public interface IArray : ISequential {
+public interface IArray : IPersistentCollection {
int length();
Object get(int i);
diff --git a/src/cli/runtime/ISequential.cs b/src/cli/runtime/IPersistentCollection.cs
index 35edf9cf..d908b7fb 100644
--- a/src/cli/runtime/ISequential.cs
+++ b/src/cli/runtime/IPersistentCollection.cs
@@ -13,7 +13,7 @@ using System;
namespace clojure.lang
{
- public interface ISequential
+ public interface IPersistentCollection
{
ISeq seq();
diff --git a/src/cli/runtime/IPersistentMap.cs b/src/cli/runtime/IPersistentMap.cs
index c3996b81..c91d3aa8 100644
--- a/src/cli/runtime/IPersistentMap.cs
+++ b/src/cli/runtime/IPersistentMap.cs
@@ -14,7 +14,7 @@ using System.Collections;
namespace clojure.lang
{
-public interface IPersistentMap : IEnumerable, ISequential{
+public interface IPersistentMap : IEnumerable, IPersistentCollection{
int count();
diff --git a/src/cli/runtime/PersistentArrayMap.cs b/src/cli/runtime/PersistentArrayMap.cs
index aa216b35..15a67d73 100644
--- a/src/cli/runtime/PersistentArrayMap.cs
+++ b/src/cli/runtime/PersistentArrayMap.cs
@@ -25,7 +25,7 @@ namespace clojure.lang
* null keys and values are ok, but you won't be able to distinguish a null value via get - use contains/find
*/
-public class PersistentArrayMap : Obj, IPersistentMap, ISequential {
+public class PersistentArrayMap : Obj, IPersistentMap, IPersistentCollection {
internal readonly Object[] array;
diff --git a/src/cli/runtime/PersistentHashtableMap.cs b/src/cli/runtime/PersistentHashtableMap.cs
index 520bb05a..0cf2206d 100644
--- a/src/cli/runtime/PersistentHashtableMap.cs
+++ b/src/cli/runtime/PersistentHashtableMap.cs
@@ -195,7 +195,7 @@ class Seq : ISeq{
return new Seq(buckets,b,e.rest());
for(b = b+1;b<buckets.length();b++)
{
- ISequential a = (ISequential) buckets.get(b);
+ IPersistentCollection a = (IPersistentCollection) buckets.get(b);
if(a != null && a.seq() != null)
return new Seq(buckets,b,a.seq());
}
diff --git a/src/cli/runtime/PersistentListIdentityMap.cs b/src/cli/runtime/PersistentListIdentityMap.cs
index b00fd620..6a84c000 100644
--- a/src/cli/runtime/PersistentListIdentityMap.cs
+++ b/src/cli/runtime/PersistentListIdentityMap.cs
@@ -31,7 +31,7 @@ namespace clojure.lang
* code duplication here is kind of gross, but most efficient
*/
- public class PersistentListIdentityMap : Obj, IPersistentMap, IMapEntry, ISeq, ISequential
+ public class PersistentListIdentityMap : Obj, IPersistentMap, IMapEntry, ISeq, IPersistentCollection
{
static public PersistentListIdentityMap EMPTY = new PersistentListIdentityMap();
diff --git a/src/cli/runtime/PersistentListMap.cs b/src/cli/runtime/PersistentListMap.cs
index a2d621a7..8dbdd7ef 100644
--- a/src/cli/runtime/PersistentListMap.cs
+++ b/src/cli/runtime/PersistentListMap.cs
@@ -27,7 +27,7 @@ namespace clojure.lang
*
* null keys and values are ok, but you won't be able to distinguish a null value via get - use contains/find
*/
-public class PersistentListMap : Obj, IPersistentMap, IMapEntry, ISeq, ISequential
+public class PersistentListMap : Obj, IPersistentMap, IMapEntry, ISeq, IPersistentCollection
{
static public PersistentListMap EMPTY = new PersistentListMap();
diff --git a/src/cli/runtime/PersistentTreeMap.cs b/src/cli/runtime/PersistentTreeMap.cs
index 79831fe1..768c2724 100644
--- a/src/cli/runtime/PersistentTreeMap.cs
+++ b/src/cli/runtime/PersistentTreeMap.cs
@@ -25,7 +25,7 @@ namespace clojure.lang
* See Okasaki, Kahrs, Larsen et al
*/
-public class PersistentTreeMap : Obj, IPersistentMap, ISequential{
+public class PersistentTreeMap : Obj, IPersistentMap, IPersistentCollection{
public readonly IComparer comp;
public readonly Node tree;
diff --git a/src/cli/runtime/RT.cs b/src/cli/runtime/RT.cs
index 08009170..23cb34b3 100644
--- a/src/cli/runtime/RT.cs
+++ b/src/cli/runtime/RT.cs
@@ -68,8 +68,8 @@ public class RT
static public ISeq seq(Object coll) {
if(coll == null || coll is ISeq)
return (ISeq) coll;
- else if(coll is ISequential)
- return ((ISequential) coll).seq();
+ else if(coll is IPersistentCollection)
+ return ((IPersistentCollection) coll).seq();
else if(coll is IEnumerable)
return EnumeratorSeq.create(((IEnumerable) coll).GetEnumerator());
else if(coll is Object[])