Skip to content

Instantly share code, notes, and snippets.

@dakom
Created August 7, 2018 18:09
Show Gist options
  • Save dakom/c8f4a7d1542e60bb8af71bfa94546c73 to your computer and use it in GitHub Desktop.
Save dakom/c8f4a7d1542e60bb8af71bfa94546c73 to your computer and use it in GitHub Desktop.
Purescript ST get mutable
ST.run (do
ref <- STRef.new initial
_ <- STRef.modify fn ref
STRef.read ref
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment