1
Fork 0
solar-conflux/purescript/reverse-state
Matei Adriel e007fc9bf7
purescript(reverse-state): feat: working reverse state
Signed-off-by: prescientmoon <git@moonythm.dev>
2020-11-17 12:16:14 +02:00
..
.vscode purescript(reverse-state): feat: working reverse state 2020-11-17 12:16:14 +02:00
src purescript(reverse-state): feat: working reverse state 2020-11-17 12:16:14 +02:00
test purescript(reverse-state): feat: failed to use run 2020-11-16 13:26:43 +02:00
.gitignore purescript(reverse-state): feat: failed to use run 2020-11-16 13:26:43 +02:00
LICENSE purescript(reverse-state): feat: working reverse state 2020-11-17 12:16:14 +02:00
packages.dhall purescript(reverse-state): feat: failed to use run 2020-11-16 13:26:43 +02:00
README.md purescript(reverse-state): feat: working reverse state 2020-11-17 12:16:14 +02:00
spago.dhall purescript(reverse-state): feat: working reverse state 2020-11-17 12:16:14 +02:00

Reverse state

My experiments with reverse state in purescript. Here's a short proof of concept

do
    future <- get -- 4
    modify \a -> a * 2
    future' <- get -- 2
    put 2