|
|
|
|
|
by Quekid5
1544 days ago
|
|
I suspect you already know this, but other readers might be interested to know that in Haskell you can also use the ST monad which can do local (actual) mutation which is guaranteed to not escape the function's scope. (Of course you can only access the actual local state and not do I/O or anything like that.) |
|