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.lua | |
| parent | 517d661368611fe753e9fd97a7adb2e45fca745e (diff) | |
Overhauling OO-API a little to make it more minimalistic.
Diffstat (limited to 'containers.lua')
| -rw-r--r-- | containers.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/containers.lua b/containers.lua index 2cb8e49..5b406de 100644 --- a/containers.lua +++ b/containers.lua @@ -45,7 +45,7 @@ nth_to_last = function(self, n) return self[#self - n + 1] end local _list_mt = { - __type = "List", + __type = "a List", __eq = function(self, other) if not (type(other) == 'table' and getmetatable(other) == getmetatable(self) and #other == #self) then return false @@ -252,7 +252,7 @@ List = function(t) end end local _dict_mt = { - __type = "Dict", + __type = "a Dict", __eq = function(self, other) if not (type(other) == 'table' and getmetatable(other) == getmetatable(self)) then return false |
