Answers for "swift dictionary filter by key"

1

swift filter dictionary

let data = ["a": 0, "b": 42]
let filtered = data.filter { $0.value > 10 }
print(filtered) // ["b": 42]
Posted by: Guest on March-09-2020

Code answers related to "swift dictionary filter by key"

Code answers related to "Swift"

Browse Popular Code Answers by Language