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

Use Dictionary.compactMapValues#180

Merged
pvzig merged 1 commit into
pvzig:masterfrom
mtgto:compact_map_values
Mar 31, 2020
Merged

Use Dictionary.compactMapValues#180
pvzig merged 1 commit into
pvzig:masterfrom
mtgto:compact_map_values

Conversation

@mtgto
Copy link
Copy Markdown
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
Copy Markdown
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