mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-07-31 12:00:34 +02:00
@@ -221,7 +221,7 @@ println("Gas price: \(price)")
|
||||
|
||||
// Número variável de argumentos
|
||||
func setup(numbers: Int...) {
|
||||
// its an array
|
||||
// é um array
|
||||
let number = numbers[0]
|
||||
let argCount = numbers.count
|
||||
}
|
||||
|
Reference in New Issue
Block a user