Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This seems like a reimplementation of ST using an unspecified State Mem.


It's not yet, but—to cheat a bit here—eventually we're going to use `Mem` to get quite intimate with `ST` and show why it's important to use `ST` perhaps more often than people even anticipate.

If you'd like, try to instantiate something along the lines of `Mem (State (IntMap v))`. It's slightly trickier than it looks due to some typing issues (which don't matter, but I'll save the reveal). It's also likely to be slightly buggy.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: