The natural equivalence between arrays and lists.
Equations
- Equiv.arrayEquivList α = { toFun := Array.data, invFun := Array.mk, left_inv := ⋯, right_inv := ⋯ }
Instances For
If α
is encodable, then so is Array α
.
Equations
- Array.encodable = Encodable.ofEquiv (List α) (Equiv.arrayEquivList α)