diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-02-06 15:33:10 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-02-06 15:34:00 -0800 |
| commit | 057f5b74ebb7851f6ba824129b3e3316cae23260 (patch) | |
| tree | 2561ca637f5db834cb8f8b82831cbbbbc26d71ae /containers.moon | |
| parent | 618e48ad98c0e2b36eb22c75251dddc141d822e6 (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.moon')
| -rw-r--r-- | containers.moon | 2 |
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 = #@ |
