Created
October 18, 2020 13:46
-
-
Save mchirico/ba9e2411a177afcf85743b2b13d7eca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
var z:[String:String] = [:] | |
z["Zoe"] = "Mouse lover..." | |
struct Z { | |
var z:[String:String] | |
func pr() -> String { | |
return "pr: \(z)" | |
} | |
} | |
let sz = Z(z: z) | |
sz.pr() | |
var m:[String:Z] = [:] | |
m["Struct Z"] = sz | |
m["Struct Z"]?.pr() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment