diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 19:17:09 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 19:17:16 -0700 |
| commit | e22c35681f90740b4f5006c30b3f154ebd1f8ea2 (patch) | |
| tree | c7f04d968bade120ebf75cfa0b9f073602917122 /core/collections.nom | |
| parent | 7112af7cb6ee52f4ef9664db9c03db52d8c73ac9 (diff) | |
Auto-upgraded everything.
Diffstat (limited to 'core/collections.nom')
| -rw-r--r-- | core/collections.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/collections.nom b/core/collections.nom index bc58c7b..5daaa09 100644 --- a/core/collections.nom +++ b/core/collections.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.8.7.6 +#!/usr/bin/env nomsu -V4.8.8.6 # This file contains code that supports manipulating and using collections like lists and dictionaries. @@ -154,8 +154,8 @@ compile [set %dict 's metatable to %metatable] to (..) test: assume (({} with fallback % -> (% + 1)).10 == 11) compile [%dict with fallback %key -> %value] to (..) - Lua value ".." - (function(d) + Lua value "\ + ..(function(d) local mt = {} for k,v in pairs(getmetatable(d) or {}) do mt[k] = v end mt.__index = function(self, \(%key as lua expr)) @@ -164,7 +164,7 @@ compile [%dict with fallback %key -> %value] to (..) return value end return setmetatable(d, mt) - end)(\(%dict as lua expr)) + end)(\(%dict as lua expr))" # Sorting test: |
