Created
February 27, 2021 21:48
-
-
Save eseidel/966dd449513613720f52d96057d521d0 to your computer and use it in GitHub Desktop.
Set<List<String>> lack of uniqueness footgun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
Set test = Set(); | |
test.add(['a']); | |
test.add(['a']); | |
// The fact that this is not 1, is a footgun. :/ | |
print("test: ${test.length}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment