diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-08-05 17:52:25 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-08-05 17:52:25 +0000 |
commit | 5572d24dae42bf686048a1add52437b4b3627ca0 (patch) | |
tree | 9b74398e86d184866187fdb2992dc3f69f15166e /src/cli/runtime/Cons.cs | |
parent | 73f8a4754a43dfce194989457b54aceca5595979 (diff) |
added IPersistentList, ASeq
Diffstat (limited to 'src/cli/runtime/Cons.cs')
-rw-r--r-- | src/cli/runtime/Cons.cs | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/cli/runtime/Cons.cs b/src/cli/runtime/Cons.cs index f4361e07..823c3fd8 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
+public class Cons : ASeq
{ private readonly Object _first; @@ -30,31 +30,18 @@ public Cons(Object first, ISeq rest) #region ISeq Members
-public object first()
+override public object first()
{
return _first;
}
-public ISeq rest()
+override public ISeq rest()
{
return _rest;
}
#endregion
-
-#region IPersistentCollection Members
-
-public ISeq seq()
- {
- return this;
- }
-
-public int count() {
- return 1 + RT.count(_rest);
-}
-
-#endregion
} } |