3 ms·
>How is indexing an array OK with functional programming of the level of purity Haskell strives for (not to mention without bounds checking)? How is it not? T
by imanaccount247 12y ago
>How is indexing an array OK with functional programming of the level of purity Haskell strives for (not to mention without bounds checking)?
How is it not? That is a complete non-sequitur and makes no sense. What sort of definition of functional programming are you using that you think it restricts what data types you are allowed to use? Do you think you aren't allowed to use lists in C?
>In "Real World Haskell" they advise you to forgo of arrays
You might want to read it instead of misrepresenting something out of context. You might also wish to consider that many of the haskell shootout submissions came from the authors of RWH.