diff --git a/containers.lua b/containers.lua index 418a819..2cb8e49 100644 --- a/containers.lua +++ b/containers.lua @@ -281,7 +281,7 @@ local _dict_mt = { local _accum_0 = { } local _len_0 = 1 for k, v in pairs(self) do - _accum_0[_len_0] = tostring(as_nomsu(k)) .. ": " .. tostring(as_nomsu(v)) + _accum_0[_len_0] = "." .. tostring(k) .. " = " .. tostring(v) _len_0 = _len_0 + 1 end return _accum_0 @@ -292,7 +292,7 @@ local _dict_mt = { local _accum_0 = { } local _len_0 = 1 for k, v in pairs(self) do - _accum_0[_len_0] = tostring(as_nomsu(k)) .. ": " .. tostring(as_nomsu(v)) + _accum_0[_len_0] = "." .. tostring(as_nomsu(k)) .. " = " .. tostring(as_nomsu(v)) _len_0 = _len_0 + 1 end return _accum_0 diff --git a/containers.moon b/containers.moon index be0925b..29e31c4 100644 --- a/containers.moon +++ b/containers.moon @@ -121,9 +121,9 @@ _dict_mt = for _ in pairs(@) do n += 1 return n __tostring: => - "{"..concat(["#{as_nomsu(k)}: #{as_nomsu(v)}" for k,v in pairs @], ", ").."}" + "{"..concat([".#{k} = #{v}" for k,v in pairs @], ", ").."}" as_nomsu: => - "{"..concat(["#{as_nomsu(k)}: #{as_nomsu(v)}" for k,v in pairs @], ", ").."}" + "{"..concat([".#{as_nomsu(k)} = #{as_nomsu(v)}" for k,v in pairs @], ", ").."}" as_lua: => "Dict{"..concat(["[ #{as_lua(k)}]= #{as_lua(v)}" for k,v in pairs @], ", ").."}" __band: (other)=>