all repos — min @ 2b81730eb59b6908b3d4b6099f3248ab23e8d707

A small but practical concatenative programming language.

Modified signature of dset (now: dict value key dset).
h3rald h3rald@h3rald.com
Sun, 06 Nov 2016 15:06:22 +0100
commit

2b81730eb59b6908b3d4b6099f3248ab23e8d707

parent

f6986cd4b44d8a3961a78ccae8937f08c11b69fa

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M lib/min_lang.nimlib/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.mintests/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