Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mmisu
· 7y ago · 0 comments
Are you confusing
.count
with
.contains
?
Comments
[–]
wmu
7y ago
I'm saying that map.contains(x) == bool(map.count(x))
[–]
mmisu
OP
7y ago
+1 I see what you mean now.
[–]
wmu
7y ago
Great! :) My initial comment wasn't clear, sorry for that.