Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRDB 7: Prefer Collection over Sequence for filter(keys:) and related APIs #1617

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

groue
Copy link
Owner

@groue groue commented Sep 8, 2024

Some apis such as filter(key:) which used to accept a Sequence now require a Collection.

…ved APIs

We were frequently turning those sequences into an Array in order to check their emptiness, and generally were not sure we'd iterate a sequence only once.

Also use `some Sequence` and `some Collection` whenever possible.
@groue groue force-pushed the dev/GRDB7-collection-over-sequence branch from 7fc2ea9 to 6a29d6c Compare September 8, 2024 10:52
@groue groue merged commit 24576c9 into GRDB7 Sep 8, 2024
8 checks passed
@groue groue deleted the dev/GRDB7-collection-over-sequence branch September 8, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant