Skip to content

Instantly share code, notes, and snippets.

@mchirico
Created October 18, 2020 13:46
Show Gist options
  • Save mchirico/ba9e2411a177afcf85743b2b13d7eca0 to your computer and use it in GitHub Desktop.
Save mchirico/ba9e2411a177afcf85743b2b13d7eca0 to your computer and use it in GitHub Desktop.
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