Re:Are Arrays Functions?
by Iceland_jack on Wednesday January 21, 2026 @07:06AM
(#46704503)
This is to say that (length-indexed) "Arrays" are Representable functors[1]. A `Vec n a` is isomorphic to (Fin n -> a), where Fin n = { x :: Nat | x < n }.
[1] https://hackage-content.haskell.org/package/adjunctions-4.4....
[ Parent
| on HN ]
There are no comments on this comment yet.