Created
August 19, 2013 16:37
Revisions
-
jfrazee created this gist
Aug 19, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ // Just an ordinary function def sum(x: Int, y: Int, z: Int) = x + y + z // A tuple of arguments val args = (1, 2, 3) // Convert the function to a (partial) Function, which has a tupled method // that takes tuples up to arity 5 (sum _).tupled(args)