diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-08-04 23:13:37 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-08-04 23:13:37 +0000 |
commit | ae23e1e284833c61924cc09f4053ded4cc96cc44 (patch) | |
tree | db4d68569df44ec84825093ded8febed442accc6 /src/cli/runtime/Cons.cs | |
parent | b47c234ac5a398894c8f3ce5dc7c06a5e7926e10 (diff) |
added Sequential, Associative
Diffstat (limited to 'src/cli/runtime/Cons.cs')
-rw-r--r-- | src/cli/runtime/Cons.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cli/runtime/Cons.cs b/src/cli/runtime/Cons.cs index 18c2a656..cd5291db 100644 --- a/src/cli/runtime/Cons.cs +++ b/src/cli/runtime/Cons.cs @@ -43,13 +43,17 @@ public ISeq rest() #endregion
-#region ISequential Members
+#region IPersistentCollection Members
public ISeq seq()
{
return this;
}
+public int count() {
+ return 1 + RT.count(_rest);
+}
+
#endregion
} |