summaryrefslogtreecommitdiff
path: root/src/cli/runtime/PersistentListMap.cs
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-08-05 17:52:25 +0000
committerRich Hickey <richhickey@gmail.com>2006-08-05 17:52:25 +0000
commit5572d24dae42bf686048a1add52437b4b3627ca0 (patch)
tree9b74398e86d184866187fdb2992dc3f69f15166e /src/cli/runtime/PersistentListMap.cs
parent73f8a4754a43dfce194989457b54aceca5595979 (diff)
added IPersistentList, ASeq
Diffstat (limited to 'src/cli/runtime/PersistentListMap.cs')
-rw-r--r--src/cli/runtime/PersistentListMap.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cli/runtime/PersistentListMap.cs b/src/cli/runtime/PersistentListMap.cs
index f0c55492..272ca299 100644
--- a/src/cli/runtime/PersistentListMap.cs
+++ b/src/cli/runtime/PersistentListMap.cs
@@ -49,6 +49,16 @@ internal virtual PersistentListMap next(){
return this;
}
+public Object peek()
+ {
+ return first();
+ }
+
+public IPersistentList pop()
+ {
+ return rest();
+ }
+
override public int count(){
return 0;
}