【问题标题】:Swift - Creating and reading a 2D HashMapSwift - 创建和读取 2D HashMap
【发布时间】:2022-12-02 18:58:31
【问题描述】:

I can\'t find any proper tutorial of how to do this.

I tried:

var hashMap = [Int:[String:String]]()

hashMap[7][\"height\"] = \"bla\"
hashMap[7][\"align\"] = \"blatoo\"

print(hashMap[7][\"height\"])

It prints nil

How to do this?

    标签: swift


    【解决方案1】:
    【解决方案2】:
    猜你喜欢
    • 1970-01-01
    • 2022-06-22
    • 1970-01-01
    • 1970-01-01
    • 2021-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多