diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-16 21:33:02 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-16 21:33:30 -0800 |
| commit | 520acd39795766354fc44c6e15f5f33f255ca33a (patch) | |
| tree | a4a538dd72ab9a1e229ec3d44beb86b80cfbe7ba /containers.moon | |
| parent | 517d661368611fe753e9fd97a7adb2e45fca745e (diff) | |
Overhauling OO-API a little to make it more minimalistic.
Diffstat (limited to 'containers.moon')
| -rw-r--r-- | containers.moon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/containers.moon b/containers.moon index 29e31c4..3e7b1a8 100644 --- a/containers.moon +++ b/containers.moon @@ -24,7 +24,7 @@ nth_to_last = (n)=> @[#@-n+1] -- used in Nomsu. This way, they retain a notion of whether they were originally lists or dicts. _list_mt = - __type: "List" + __type: "a List" __eq: (other)=> unless type(other) == 'table' and getmetatable(other) == getmetatable(@) and #other == #@ return false @@ -107,7 +107,7 @@ List = (t)-> else error("Unsupported List type: "..type(t)) _dict_mt = - __type: "Dict" + __type: "a Dict" __eq: (other)=> unless type(other) == 'table' and getmetatable(other) == getmetatable(@) return false |
