News for hackers. Stuff that matters.
Re:How do I modify a variable in Haskell? by _polymer_ on Tuesday August 15, 2017 @09:53AM (#15018148)
I assumed there must be something like this, but that notation is a pain.

What's wrong with something like "set arr idx newvalue"?

Re:How do I modify a variable in Haskell? by tome on Tuesday August 15, 2017 @09:56AM (#15018176)
> What's wrong with something like "set arr idx newvalue"?

Nothing. See here: https://news.ycombinator.com/item?id=15017853

It's called "writeArray".