mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-19 14:29:27 +03:00
bdd222a086
- Includes a new test transcript for ref usage
264 B
264 B
A short script to test mutable references with local scope.
.> builtins.mergeio
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