Skip to content

Conversation

Diaphteiros
Copy link
Contributor

What this PR does / why we need it:
Adds a ProjectSliceToMap function.

Which issue(s) this PR fixes:
None

Special notes for your reviewer:

Release note:

Added a `ProjectSliceToMap` function to the `pkg/collections` package. This is useful for turning lists with identifiable items into maps with the identifiers as key, for example.
For better naming consistency, `ProjectSlice` has been renamed to `ProjectSliceToSlice`. The old function is deprecated and will be removed in the future.

robertgraeff
robertgraeff previously approved these changes Jul 31, 2025
@Diaphteiros Diaphteiros merged commit a3ae268 into main Aug 7, 2025
7 checks passed
@Diaphteiros Diaphteiros deleted the collections branch August 7, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants