e007fc9bf7
Signed-off-by: prescientmoon <git@moonythm.dev>
12 lines
194 B
Markdown
12 lines
194 B
Markdown
# Reverse state
|
|
|
|
My experiments with reverse state in purescript. Here's a short proof of concept
|
|
|
|
```purs
|
|
do
|
|
future <- get -- 4
|
|
modify \a -> a * 2
|
|
future' <- get -- 2
|
|
put 2
|
|
```
|