mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-04 01:03:36 +03:00
273 B
273 B
A short script to test mutable references with local scope.
scratch/main> builtins.merge
test = Scope.run 'let
r = Scope.ref 0
Ref.write r 1
i = Ref.read r
Ref.write r 2
j = Ref.read r
Ref.write r 5
(i, j, Ref.read r)
> test