diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-09-27 01:01:56 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-09-27 01:01:56 +0000 |
commit | c62973eb7d0af525fe5e9e6d1e9d8a8971aab8b2 (patch) | |
tree | 8f56d847b62fd651ff4dcb8b7c79a1b49d2c94dd /src/cli/runtime | |
parent | 2212ddd3122b6f0799b4ed73e77aeeea7c19c34c (diff) |
interim checkin
Diffstat (limited to 'src/cli/runtime')
-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)
|