RosettaCodeData/Task/Variadic-function/Swift/variadic-function-1.swift
2016-12-05 23:44:36 +01:00

6 lines
95 B
Swift

func printAll<T>(things: T...) {
// "things" is a [T]
for i in things {
print(i)
}
}