Skip to content

Instantly share code, notes, and snippets.

@sajjadyousefnia
Created May 3, 2018 05:28
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 sajjadyousefnia/486b44884384ae42f0ba6709d245f0ee to your computer and use it in GitHub Desktop.
Save sajjadyousefnia/486b44884384ae42f0ba6709d245f0ee to your computer and use it in GitHub Desktop.
fun printNumbers(myDouble: Double, myFloat: Float, vararg ints: Int) {
println(myDouble)
println(myFloat)
for (n in ints) {
print("$n\t")
}
}
printNumbers(1.34, 4.4F, 2, 3, 4, 5, 6) // will compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment