miniscript icon indicating copy to clipboard operation
miniscript copied to clipboard

[C# != C++] map.replace doesn't replace in locals in MM

Open marcgurevitx opened this issue 2 years ago • 0 comments

Difference in behavior locals.replace in Mini Micro and the command line version:

Mini Micro

]x = 42
]locals.replace 42, 43
]print x
42
]

Command line

> x = 42
> locals.replace 42, 43
{"x": 43, "_": {"x": 43, "_": {"x": 43, "_": {...}}}}
> print x
43

marcgurevitx avatar Nov 21 '23 20:11 marcgurevitx