Skip to content

Instantly share code, notes, and snippets.

@alinpopa
Created January 20, 2010 19:28
Show Gist options
  • Save alinpopa/282142 to your computer and use it in GitHub Desktop.
Save alinpopa/282142 to your computer and use it in GitHub Desktop.
object ZipUtils{
def zipWith(f:(Int,Int) => Int, l1:List[Int], l2:List[Int]):List[Int] = {
l1.zip(l2).map{
x:(Int,Int) => f(x._1, x._2)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment