Mutability in functional programming

前端 未结 4 745
猫巷女王i
猫巷女王i 2021-02-05 13:02

First I am a Haskell newbie. I\'ve read this: Immutable functional objects in highly mutable domain And my question is nearly the same -- how to efficiently write algorithms whe

4条回答
  •  醉话见心
    2021-02-05 13:29

    The ST Monad lets you use mutable state internally, but present a pure external interface.

提交回复
热议问题