1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-17 13:38:38 +01:00
This commit is contained in:
Esteve Aguilera 2017-06-16 09:40:32 +02:00 committed by ven
parent 3983b8c35a
commit 1adf002021

View File

@ -109,7 +109,7 @@ fun helloWorld(val name : String) {
println("S'han rebut ${names.size} arguments") println("S'han rebut ${names.size} arguments")
} }
varargExample() // => S'han rebut 0 elements varargExample() // => S'han rebut 0 elements
varargExample(1) // => S'han rebut 1 elements varargExample(1) // => S'ha rebut 1 element
varargExample(1, 2, 3) // => S'han rebut 3 elements varargExample(1, 2, 3) // => S'han rebut 3 elements
/* /*