Traversable instance for DLists #
This file provides the equivalence between List α
and DList α
and the traversable instance
for DList
.
The natural equivalence between lists and difference lists, using
DList.ofList
and DList.toList
.
Equations
- Batteries.DList.listEquivDList α = { toFun := Batteries.DList.ofList, invFun := Batteries.DList.toList, left_inv := ⋯, right_inv := ⋯ }
Instances For
Equations
- Batteries.instInhabitedDList_mathlib = { default := Batteries.DList.empty }