net.liftweb.common.HLists
The HList cons cell, which represents one part of an HList in linked list style.
HList
Carries the information about the type of this element, plus the HList type of the rest of the list.
You can use :+: to make this HList longer:
:+:
scala> val first = Type1("Value") :+: HNil first: net.liftweb.common.HLists.HCons[Type1,net.liftweb.common.HLists.HNil] = Type1(Value) :+: HNil scala> Type2("Other Value") :+: first res0: net.liftweb.common.HLists.HCons[Type2, net.liftweb.common.HLists.HCons[Type1, net.liftweb.common.HLists.HNil]] = Type2(Other Value) :+: Type1(Value) :+: HNil
The
HListcons cell, which represents one part of anHListin linked list style.Carries the information about the type of this element, plus the
HListtype of the rest of the list.You can use
:+:to make thisHListlonger: