Skip to content

Instantly share code, notes, and snippets.

@mschuetz
Created May 31, 2010 21:00
Show Gist options
  • Save mschuetz/420275 to your computer and use it in GitHub Desktop.
Save mschuetz/420275 to your computer and use it in GitHub Desktop.
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()
}
List()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment