Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Use Dictionary.compactMapValues #180

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

mtgto
Copy link
Contributor

@mtgto mtgto commented Mar 27, 2020

In #179, I use Dictionary.compactMapValues in WebAPI users.conversations.
I notice SKCore presents filterNilParameters which is same as Dictionary.compactMapValues({$0}) .

SlackKit is written in Swift 5.x now, we can use compactMapValues all over the project.

@pvzig
Copy link
Owner

pvzig commented Mar 31, 2020

Nice!

@pvzig pvzig merged commit 187a39c into pvzig:master Mar 31, 2020
@mtgto mtgto deleted the compact_map_values branch April 1, 2020 12:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants