3 ms·
I mean, Haskell literally defines array access in terms of a function. > Haskell provides indexable arrays, which may be thought of as functions whose domains
by monocasa 7y ago
I mean, Haskell literally defines array access in terms of a function.
> Haskell provides indexable arrays, which may be thought of as functions whose domains are isomorphic to contiguous subsets of the integers.
https://www.haskell.org/onlinereport/haskell2010/haskellch14.html https://www.haskell.org/onlinereport/haskell2010/haskellch14...
The fact that strings are different seems to have more to do with the ergonomics of strings rather than arrays.