Closed plocket closed 4 years ago
I don't know this thing of which you speak, but I will look it up.
Also, can't believe I didn't test the empty case. Sheesh.
There, that should have a more sensical and handleable failure case.
Great. I keep next()
and .get()
in my toolbox to deal with empty lists/other iterators. As nice as Python is, dealing with None requires defensive programming :)
Accepted with changes. Thanks, this is very helpful
Test: