fork download
  1.  
  2. object Main
  3. {
  4.  
  5. def add(x: Int, y: Int): Long =
  6. x.toLong + y
  7.  
  8. def main(args: Array[String]): Unit = {
  9. val c = (add _).curried(2)
  10.  
  11. println(c(2))
  12. }
  13. }
Success #stdin #stdout 0.34s 321920KB
stdin
Standard input is empty
stdout
4