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

[FAQ] How to deduplicate str lists #165

Closed
Peefy opened this issue Sep 20, 2023 · 2 comments · Fixed by #264
Closed

[FAQ] How to deduplicate str lists #165

Peefy opened this issue Sep 20, 2023 · 2 comments · Fixed by #264
Assignees
Labels
faq help wanted Extra attention is needed

Comments

@Peefy
Copy link
Contributor

Peefy commented Sep 20, 2023

to_set = lambda items: [str] {
    [item for item in {item = None for item in items}]
}

data = to_set(["aa", "bb", "bb", "cc"])
dataIsUnique = isunique(data)

The output is

data:
- aa
- bb
- cc
dataIsUnique: true
@Peefy Peefy changed the title [Enhancement] How to deduplicate str lists [FAQ] How to deduplicate str lists Sep 21, 2023
@Peefy Peefy added faq help wanted Extra attention is needed labels Sep 21, 2023
@octonawish-akcodes
Copy link
Contributor

I want to work on this

@Peefy
Copy link
Contributor Author

Peefy commented Feb 1, 2024

I want to work on this

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants