Skip to content

ExtractSubIndexLists now allows non-sequential elements #32

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

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Oct 12, 2023

With this patch now a sequence of indexed properties is allowed to be non-sequential or to have "holes":

quattro.discovery.required.1=itemA
quattro.discovery.required.4=itemB
quattro.discovery.required.5=itemC

and calling:

m.ExtractSubIndexLists("quattro.discovery.required")

will produce:

[]string("itemA", "itemB", "itemC")

@cmaglie cmaglie self-assigned this Oct 12, 2023
@cmaglie cmaglie added the type: enhancement Proposed improvement label Oct 12, 2023
@cmaglie cmaglie merged commit b9618c5 into master Oct 12, 2023
@cmaglie cmaglie deleted the lists branch October 12, 2023 14:52
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants