I have a dictionary of type [String: [SomeObject]?]
and I want to map it to another dictionary of the same type but in some cases remove elements from the inner array.
How to solve this issue? If it is possible to do with swift features only like map
, filter
, reduce
and etc. without iterating and recreating a new dictionary manually?