We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
*
...
0 ~ n
def head(args: Int*): Int = args.head
head(1,2,3)
_*
String.format("%s + %s = %s", "1","2","3")
String.format("%s + %s = %s", Seq("1","2","3"):_*)
-
import *
x => x + 1
_ + 1
_
x => x
switch
default:
_ :
_+_
(x, y) => x + y
_ * 2
x => x * 2
_.head
xs => xs.head
_ drop _
(xs, n) => xs.drop(n)