by elbear · 8y ago · 0 comments
Also one can use STRef if they want to have a pure function that is internally implemented with mutable values - that is all the side effects are self contained.
http://gamasutra.com/view/news/169296/Indepth_Functional_pro...
"a function can still be pure even if it calls impure functions, as long as the side effects don't escape the outer function"