Skip to content

Instantly share code, notes, and snippets.

@rtfpessoa
Last active November 23, 2015 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtfpessoa/c31d7279ee0462626a02 to your computer and use it in GitHub Desktop.
Save rtfpessoa/c31d7279ee0462626a02 to your computer and use it in GitHub Desktop.
Partially apply function with tuple
def t(a: Int, b : Int, c : Int) = a + b + c
t(1, _: Int, _: Int)
t.tupled.apply((2, 3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment