Modified signature of dset (now: dict value key dset).
h3rald h3rald@h3rald.com
Sun, 06 Nov 2016 15:06:22 +0100
2 files changed,
2 insertions(+),
2 deletions(-)
M
lib/min_lang.nim
→
lib/min_lang.nim
@@ -644,8 +644,8 @@ i.push d.dget(k)
.symbol("dset") do (i: In): var d, k: MinValue - let m = i.pop i.reqStringLike k + let m = i.pop i.reqDictionary d i.push i.dset(d, k, m)
M
tests/lang.min
→
tests/lang.min
@@ -157,7 +157,7 @@ (((a 1)(b 2)(c 3)) dictionary?) assert
(((a 1)(b 2)(c 3)) 'b dget 2 ==) assert - (((a 1)(b 2)(c 3)) ' :dict dict 'b 5 dset ' :newdict newdict ((a 1)(b 5)(c 3)) == dict ((a 1)(b 2)(c 3)) == and) assert + (((a 1)(b 2)(c 3)) ' :dict dict 5 'b dset ' :newdict newdict ((a 1)(b 5)(c 3)) == dict ((a 1)(b 2)(c 3)) == and) assert (((a 1)(b 2)(c 3)) ' :dict dict 'b ddel ' :newdict newdict ((a 1)(c 3)) == dict ((a 1)(b 2)(c 3)) == and) assert