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 8a7d7fa..f8f678c 100644
--- a/containers.moon
+++ b/containers.moon
@@ -26,6 +26,7 @@ as_lua = =>
-- List and Dict classes to provide basic equality/tostring functionality for the tables
-- used in Nomsu. This way, they retain a notion of whether they were originally lists or dicts.
_list_mt =
+ __type: "List"
__eq:equivalent
-- Could consider adding a __newindex to enforce list-ness, but would hurt performance
__tostring: =>
@@ -96,6 +97,7 @@ walk_items = (i)=>
return i, Dict{key:k, value:v}
_dict_mt =
+ __type: "Dict"
__eq:equivalent
__len:size
__tostring: =>