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

itertools.islice() instead of zip() trick #1

Open
yamaton opened this issue Jan 9, 2019 · 0 comments
Open

itertools.islice() instead of zip() trick #1

yamaton opened this issue Jan 9, 2019 · 0 comments

Comments

@yamaton
Copy link

yamaton commented Jan 9, 2019

Thank you for your great talk, today!
I've learned a lot.

I think
list(itertools.islice(ints, 10))
feels more functional than
[x for _, x in zip(range(10), ints)]
as used in the Functional Programming HOWTO.

It's a matter of personal taste, though.

@yamaton yamaton changed the title itertools.islice(iterable, ) instead of itertools.islice() instead of zip() trick Jan 9, 2019
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