Avatar
これも貼っときます。 https://github.com/koher/dictionary-builder
Helps to make dictionary instances using Function Builder - koher/dictionary-builder
1:13 PM
let dictionary: [String: Int] = .init { [ "a": 2, "b": 3, ] if isFoo { ["c": 5] } }