Constructor and Description |
---|
HListLens() |
Modifier and Type | Method and Description |
---|---|
static <E,List extends HList.HCons<?,?>> |
elementAt(Index<E,List> index)
|
static <Head,Tail extends HList> |
head()
Focus on the head of an
HList . |
static <Head,Tail extends HList> |
tail()
Focus on the tail of an
HList . |
public static <E,List extends HList.HCons<?,?>> Lens.Simple<List,E> elementAt(Index<E,List> index)
E
- the element typeList
- the HList under focusindex
- the index of the element to focus onpublic static <Head,Tail extends HList> Lens.Simple<HList.HCons<Head,? extends Tail>,Head> head()
HList
.Head
- the head element typeTail
- the tail HList typepublic static <Head,Tail extends HList> Lens.Simple<HList.HCons<Head,? extends Tail>,Tail> tail()
HList
.Head
- the head element typeTail
- the tail HList type