Y
Hacker News
new
|
ask
|
show
|
jobs
by
mmisu
2707 days ago
Are you confusing
.count
with
.contains
?
1 comments
wmu
2707 days ago
I'm saying that map.contains(x) == bool(map.count(x))
link
mmisu
2707 days ago
+1 I see what you mean now.
link
wmu
2707 days ago
Great! :) My initial comment wasn't clear, sorry for that.
link