Advertisement
Guest User

Sum of Two Integers

a guest
Jul 22nd, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.09 KB | None | 0 0
  1.  def findSums = (a:List[Int], b:List[Int], c:Int) => a.zip(b).filter(v => v._1 + v._2 == c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement