aboutsummaryrefslogtreecommitdiff
path: root/containers.moon
diff options
context:
space:
mode:
Diffstat (limited to 'containers.moon')
-rw-r--r--containers.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/containers.moon b/containers.moon
index 06fbccc..8bca1c4 100644
--- a/containers.moon
+++ b/containers.moon
@@ -88,6 +88,8 @@ _list_mt =
start = (n+1-start) if start < 0
stop = (n+1-stop) if stop < 0
return List[@[i] for i=start,stop]
+ from: (start)=> @from_1_to(start, -1)
+ up_to: (stop)=> @from_1_to(1, stop)
copy: => List[@[i] for i=1,#@]
reverse: =>
n = #@