Join Slack
Powered by
Is there such as thing as `HashMap.putIf()`? A gen...
# stdlib
c
cedric
02/02/2017, 5:56 PM
Is there such as thing as
HashMap.putIf()
? A generalization of
putIfAbsent
where the condition can be passed as a closure instead of just being
get() == null
?
4
Views
Open in Slack
Previous
Next