目录
目录README.md

DepthNSDictionary

Extension to navigate a nested dictionary using separator to search nested keys in a recursive implementation

Usage

let nested_dict: NSDictionary = ["a": 1, "b": ["c": 2, "d": 3], "e": 5]

let param_a = nested_dict.dfs(forKey: "a") as! Int
let param_d = nested_dict.dfs(forKey: "b__d") as! Int
let isNil = nested_dict.dfs(forKey: "dog__cat") // it's nil
关于
46.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号