Advertisement
Guest User

calcScala

a guest
Feb 10th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.09 KB | None | 0 0
  1. def calcular(f: (Int, Int) => Int) = (a: Int, b: Int) => f(a, b)
  2.  
  3. calcular(_ + _)(1, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement