Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
let myMap = [
|
||||
"hello": 13,
|
||||
"world": 31,
|
||||
"!" : 71 ]
|
||||
|
||||
// iterating over key-value pairs:
|
||||
for (key, value) in myMap {
|
||||
print("key = \(key), value = \(value)")
|
||||
}
|
||||
// Just the keys
|
||||
for key in myMap.keys
|
||||
{
|
||||
print("key = \(key)")
|
||||
}
|
||||
// Just the values
|
||||
for value in myMap.values
|
||||
{
|
||||
print("value = \(value)")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue