Any plans to have a Set type? #19542
Replies: 1 comment 2 replies
-
Hi
![]() |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a simple web browser and it would be nice to implement the "class" attribute as a Set so duplicate classes are ignored. Also, I think something like Rust's HashSet can determine if an item is in the Set in constant time whereas using an Array is O(n), right?
Beta Was this translation helpful? Give feedback.
All reactions