def unreturn(lx: Sized[List[Int], Nat._1]): Int = lx head
如何使用无形获取一个元素列表的头部?这不编译:
No implicit view available from List[Int] =>
scala.collection.GenTraversableLike[v.A,List[Int]].
not enough arguments for method sizedOps:
(implicit evidence$2: List[Int] =>
scala.collection.GenTraversableLike[v.A,List[Int]])shapeless.
SizedOps[v.A,List[Int],shapeless.Nat._1]. Unspecified value parameter evidence$2.