summaryrefslogtreecommitdiff
path: root/src/cli/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/runtime')
-rw-r--r--src/cli/runtime/RT.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/cli/runtime/RT.cs b/src/cli/runtime/RT.cs
index be8e85cb..8270a2c9 100644
--- a/src/cli/runtime/RT.cs
+++ b/src/cli/runtime/RT.cs
@@ -174,10 +174,17 @@ static public ISeq seq(Object coll) {
{
return Convert.ToDouble(x);
}
-static public Cons cons(Object x, ISeq y)
- {
- return new Cons(x, y);
- }
+static public Cons cons(Object x, Object y) {
+return new Cons(x, seq(y));
+}
+
+static public Object first(Object x) {
+ return seq(x).first();
+}
+
+static public ISeq rest(Object x) {
+ return seq(x).rest();
+}
static public Cons list()
{