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/RT.cs | |
parent | b47c234ac5a398894c8f3ce5dc7c06a5e7926e10 (diff) |
added Sequential, Associative
Diffstat (limited to 'src/cli/runtime/RT.cs')
-rw-r--r-- | src/cli/runtime/RT.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli/runtime/RT.cs b/src/cli/runtime/RT.cs index 23cb34b3..ed6bfffe 100644 --- a/src/cli/runtime/RT.cs +++ b/src/cli/runtime/RT.cs @@ -379,5 +379,10 @@ static public Object setValues(params Object[] vals) return null;
}
+public static int count(Object o) {
+ if(o == null)
+ return 0;
+ return ((IPersistentCollection)o).count();
+}
}
}
\ No newline at end of file |