Created
August 7, 2018 18:09
-
-
Save dakom/c8f4a7d1542e60bb8af71bfa94546c73 to your computer and use it in GitHub Desktop.
Purescript ST get mutable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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