We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When able, change DisjointSet.Set_ids() to use enumerate and/or list comprehension.
DisjointSet.Set_ids()
enumerate():
... for i, p in enumerate(self.parents): if i == p: ...
list comprehension:
return List[Int](i for i, p in enumerate(self.parents) if i == p)
The text was updated successfully, but these errors were encountered:
Of note: we can't do this yet. I am going to add a "blocked" tag. This task is blocked, awaiting more features in core Mojo language.
Sorry, something went wrong.
No branches or pull requests
When able, change
DisjointSet.Set_ids()
to use enumerate and/or list comprehension.enumerate():
list comprehension:
The text was updated successfully, but these errors were encountered: