Skip to content

Instantly share code, notes, and snippets.

def combine(in: List[String], f: (String, String)=>String): List[String] = {
in match {
case List(first, second, tail*) =>
println(tail)
//f(first, second) :: foo(tail, f)
case List(last) => List(last)
case List() => List()
}