Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created April 28, 2016 15:50
Show Gist options
  • Select an option

  • Save veeneck/d9e11c27af07622eca66b66b572868f5 to your computer and use it in GitHub Desktop.

Select an option

Save veeneck/d9e11c27af07622eca66b66b572868f5 to your computer and use it in GitHub Desktop.
string array[3] = {"foo", "bar", "quuk"};
for(auto& i : array) {
std::cout << i << "\n";
}
let array : [String] = ["foo", "bar", "quuk"]
for i in array {
print("\(i)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment