glom icon indicating copy to clipboard operation
glom copied to clipboard

First() isn't very discoverable

Open ckp95 opened this issue 4 years ago • 0 comments

I didn't realize that First() existed until I went poking around in the source today. First(predicate) is a nice shortcut for Iter().first(predicate), but it isn't mentioned in the "Streaming & Iteration" part of the docs. Also it isn't in the main glom namespace, you have to import it via glom.streaming.

It would be nice to be able to do from glom import First and also have its existence mentioned in the main docs next to Iter().

ckp95 avatar Oct 03 '20 17:10 ckp95