Applying an argument list to curried function using foldLeft in Scala
This turns out to be quite a bit simpler than I initially expected. First we need to define a simple HList, sealed trait HList final case class HCons[H, T <: HList](head : H, tail : T) extends HList { def ::[H1](h : H1) = HCons(h, this) override def toString = head+” :: “+tail.toString } trait … Read more