Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First() isn't very discoverable #202

Open
ckp95 opened this issue Oct 3, 2020 · 0 comments
Open

First() isn't very discoverable #202

ckp95 opened this issue Oct 3, 2020 · 0 comments

Comments

@ckp95
Copy link

ckp95 commented Oct 3, 2020

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant