aboutsummaryrefslogtreecommitdiff
path: root/containers.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-02-06 15:33:10 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-02-06 15:34:00 -0800
commit057f5b74ebb7851f6ba824129b3e3316cae23260 (patch)
tree2561ca637f5db834cb8f8b82831cbbbbc26d71ae /containers.lua
parent618e48ad98c0e2b36eb22c75251dddc141d822e6 (diff)
Moving to better, more centralized versioning system. Now the Nomsu
version is just defined as a list at the top of nomsu.moon, and uses X.Y.Z form instead of X.Y.Z.W. Added a ([...], from 2) method and a ([...], up to 5) method, and fixed a few upgrade bugs.
Diffstat (limited to 'containers.lua')
-rw-r--r--containers.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/containers.lua b/containers.lua
index 93a8705..365fa4d 100644
--- a/containers.lua
+++ b/containers.lua
@@ -226,6 +226,12 @@ local _list_mt = {
return _accum_0
end)())
end,
+ from = function(self, start)
+ return self:from_1_to(start, -1)
+ end,
+ up_to = function(self, stop)
+ return self:from_1_to(1, stop)
+ end,
copy = function(self)
return List((function()
local _accum_0 = { }