diff options
Diffstat (limited to 'src/cli/runtime/RT.cs')
| -rw-r--r-- | src/cli/runtime/RT.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cli/runtime/RT.cs b/src/cli/runtime/RT.cs index 7a932f78..1f97c081 100644 --- a/src/cli/runtime/RT.cs +++ b/src/cli/runtime/RT.cs @@ -136,7 +136,17 @@ static public Object first(Object x) return null;
return seq(x).first();
}
+
+static public Object second(Object x)
+ {
+ return first(rest(x));
+ }
+static public Object third(Object x)
+ {
+ return first(rest(rest(x)));
+ }
+
static public ISeq rest(Object x)
{
if (x == null)
|
