-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
LinkedHashMap is unable to find an existing key #55722
Comments
Edit: Ah, it was a movie, not a picture. Makes more sense now. That does look suspicious, almost as if the hash table has been built using the wrong hash numbers.
So something is off.) |
sorry for bad example, This code snippet just an example how I utilized the map. please check the video
|
@rebaz94 Dart does not require Simple example: void main() {
final s0 = 'key1';
final s1 = 'key1,key2'.split(',').first;
print(s0 == s1);
print(identical(s0, s1));
} This means using |
Ah, got it. Thank you for the clarification. |
I'm still worried that |
I've come across a bug in the map where the key exists in the map, but it can't be found.
In this example, despite 'key1' being present in the map but it return null, and containsKey incorrectly reports its absence. However, when checking the map's entries, using
keys
or checking with==
equality return the valueScreen.Recording.2024-05-14.at.9.33.53.PM.mp4
The text was updated successfully, but these errors were encountered: