Heterogeneous Lists #
We define HList
as a synonym for List (Σ α : Type u, α)
, namely a list of types together with
a value.
We note some other implementations of HList
:
- Soup
- Part of Certified Programming with Dependent Types (it's in Coq, but can be translated to Lean)
Our choice of definition is so that we can directly rely on the existing API for List
.
@[simp]
Get the value of the element at index i
, of type l[i].1
Equations
Instances For
Equivalent between HList.getValue
and HList.toDVec