Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created May 3, 2018 05:16
Show Gist options
  • Save sajjadyousefnia/8edcfa05f223650a8d34779f97ad3bd2 to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/8edcfa05f223650a8d34779f97ad3bd2 to your computer and use it in GitHub Desktop.
fun printInts(vararg ints: Int): Unit {
for (n in ints) {
print("$n\t")
}
}
printInts(1, 2, 3, 4, 5, 6) // will print 1 2 3 4 5 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment