Skip to content

Instantly share code, notes, and snippets.

@ostretsov
Created January 4, 2015 06:52
Show Gist options
  • Save ostretsov/46234a1c92382fe5027e to your computer and use it in GitHub Desktop.
Save ostretsov/46234a1c92382fe5027e to your computer and use it in GitHub Desktop.
def f1(x: Int, y: Int) = x + y
def f2(x: Int)(y: Int) = x + y
println(f1(1, 2))
println(f2(1) {
val a = 5
val b = 6
a + b
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment