Join Slack
Powered by
Your algorithm can assume anything but the compile...
# announcements
p
poohbar
08/29/2017, 3:22 PM
Your algorithm can assume anything but the compiler has no way of knowing whether the key really is in the map or not.
[..]
does the same as java's
Map.get
which returns null if the key is not found. There is no way to use
+=
in a concise way here.
Open in Slack
Previous
Next