by aetherspawn · 9y ago · 0 comments
There is a tiny cost for each mutable memory location since the garbage collector has to work around then. A single array won't even be measurable, though.
Also, there are some referentially transparent algorithms that can't be implemented via ST - like laziness.