Skip to content

Unique Plugin List keys#139

Merged
tinder-cfuller merged 1 commit intomainfrom
plugin-list-unique-keys
Jun 29, 2022
Merged

Unique Plugin List keys#139
tinder-cfuller merged 1 commit intomainfrom
plugin-list-unique-keys

Conversation

@tinder-cfuller
Copy link
Contributor

No description provided.

let keys: [KeyType] = creationOrder(component: component)
return keys.compactMap { key in plugins.first { $0.key == key } }
var store: Set<KeyType> = []
let uniqueKeys: [KeyType] = keys.filter { store.insert($0).inserted }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat!

@tinder-cfuller tinder-cfuller merged commit 2d8c64c into main Jun 29, 2022
@tinder-cfuller tinder-cfuller deleted the plugin-list-unique-keys branch June 29, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework Framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants