diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-16 16:44:16 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-16 16:44:30 -0800 |
| commit | 75bb8979aee185e82de0e3a5b82d88774997a634 (patch) | |
| tree | 9d37c5e8cf09c2a56f2fc5cd08ae4aa4d0927677 /containers.moon | |
| parent | 1cbf9f3e07de9303283c747f7dbad61b77278819 (diff) | |
Fixed dict tostring to use {.x = 1} form instead of {x: 1}
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 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)=> |
