:: HNil // h: String :: Int :: Boolean :: HNil val isAwesome = h.last // isAwesome: Boolean = true h(3) // <console>:16: error: ... You requested to access an element at the position Succ[Succ[Succ[_0]]], but the HList ::[String,::[Int,::[Boolean,HNil]]] is too short.
this! case class Meetup(name: String, num: Int) val csv = "ScalaTaiwan,18" val meetup = Generic[Meetup].from(csvToHList(csv)) //meetup: Meetup = Meetup(ScalaTaiwan,18)