Skip to content

Instantly share code, notes, and snippets.

@f0go
Created September 10, 2014 18:49
Show Gist options
  • Save f0go/10748bf51521df23f8ab to your computer and use it in GitHub Desktop.
Save f0go/10748bf51521df23f8ab to your computer and use it in GitHub Desktop.
var array:Array<String> = ["uno", "dos", "tres"]
var string: String = ""
for i in 0..<array.count{
if i<array.count-1{
string += "\(array[i]), "
}else{
string += (array[i])
}
}
println(string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment