summaryrefslogtreecommitdiff
path: root/src/cli/runtime/LispReader.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-08-05 19:24:17 +0000
committerRich Hickey <richhickey@gmail.com>2006-08-05 19:24:17 +0000
commit397f768ca30a4615c753ec544dedc5c39be7743b (patch)
tree00dd0db8e2efb38df35f942e108eab721887c457 /src/cli/runtime/LispReader.cs
parenta619d3a6f9cde068d0945ab26b275113c8ffde1b (diff)
added PersistentList, changed RT.cons to work with all collections
Diffstat (limited to 'src/cli/runtime/LispReader.cs')
-rw-r--r--src/cli/runtime/LispReader.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cli/runtime/LispReader.cs b/src/cli/runtime/LispReader.cs
index 36c47d3a..35b3b0b8 100644
--- a/src/cli/runtime/LispReader.cs
+++ b/src/cli/runtime/LispReader.cs
@@ -292,10 +292,7 @@ public static ISeq readDelimitedList(char delim, LineNumberingTextReader r, bool
}
}
- ISeq ret = null;
- for(int i=a.Count-1;i>=0;--i)
- ret = RT.cons(a[i], ret);
- return ret;
+ return RT.seq(a);
}
/*