diff options
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 |