aboutsummaryrefslogtreecommitdiff
path: root/std/prelude/lists.pk
diff options
context:
space:
mode:
Diffstat (limited to 'std/prelude/lists.pk')
-rw-r--r--std/prelude/lists.pk4
1 files changed, 4 insertions, 0 deletions
diff --git a/std/prelude/lists.pk b/std/prelude/lists.pk
index 410cfed..1e8dee5 100644
--- a/std/prelude/lists.pk
+++ b/std/prelude/lists.pk
@@ -99,6 +99,10 @@ pub func remove[T](self: mut list[T], i: uint): T =
pub func last[T](self: list[T]): lent T? =
self.get(self.len - 1)
+# todo: many questions. owned? how does it not free?
+pub func iter[T](self: owned list[T]): ListIter[T] =
+ ...
+
# todo: iteration...
# todo: destructors...
# todo: syntax for inlining + other pragmas... as a macro, perhaps?