3 ms·
`ST` isn't `State` (though the interface is very similar), it's a restricted variant of `IO`. An `STRef` is an actual mutable reference, backed by actual memory
by consilient 4y ago
`ST` isn't `State` (though the interface is very similar), it's a restricted variant of `IO`. An `STRef` is an actual mutable reference, backed by actual memory.
- sideeffffect 4y agoOh, I see. Nice! I'm afraid we don't have anything like ST in any Scala library that I know of :(