<div dir="ltr">Hi, is there something like a haskell runST monad (<a href="https://wiki.haskell.org/Monad/ST">https://wiki.haskell.org/Monad/ST</a>) in ur/web, so that I can perform mutations within a pure function?<div><br></div><div>For example I might want to have my pure function make a copy of a large array, and then perform the relevant mutations on this copy, before returning this copy. The function is pure in that it does not modify the input nor does it require data from the "outside world", and yet relies on mutations of the internal copy (which it employs for the sake of efficiency).</div><div><br></div><div>Thanks</div><div><br></div></div>