3 ms·
> Haskell has excellent State support Someone who understands where that support is and how to use it should rewrite atrocities like: https://rosettacode.org/
by kazinator 10y ago
> Haskell has excellent State support
Someone who understands where that support is and how to use it should rewrite atrocities like:
https://rosettacode.org/wiki/Assigning_Values_to_an_Array#Haskell https://rosettacode.org/wiki/Assigning_Values_to_an_Array#Ha...
- codygman 10y agoI don't think that's so bad, it's just you are using a function instead of the usual built in indexing operator [0]. Here's something a bit more convenient using Data.Array.Lens[1]. arr ^. ix 2 vs the original: readArray arr 2