Pick out the Nth element of a HList of Lists and return that value as a HList of values
问题 I have an HList in which each column represents a column of a table. Each list in the HList is of the same length. I'd like to be able to write a function which picks out individual rows of this table as a tuple or an HList of values. Eventually I will convert this to something a bit more sensible (e.g. a Case Class). import shapeless.PolyDefns.~> import shapeless.{HList, HNil} val a = List(1,2,3) :: List("a", "b", "c") :: List(true, false, true) :: HNil object broken extends (HList ~> HList)