I remember Josh Bloch telling a story in some inte...
# stdlib
b
I remember Josh Bloch telling a story in some interview about how he left this out of the Java APIs and had some co-worker grumble about the "axiom of choice". He later regretted the decision and thought it would often be a useful method, but I don't know what his reasons were.
👍 1
o
If you have a link, please share 🙂
b

https://www.youtube.com/watch?v=4YxnxmQS41s#t=17m57s

it's funny though, he says they added the method to
Queue
and
Deque
but I can't find it
maybe he's referring to
remove(), poll(), element(), peek()
but those aren't random
k
Isn't he talking about atomically getting an element and removing it there?