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

#2: Rust and Gears - Python List Comprehensions #26

Closed
mre opened this issue Apr 3, 2018 · 1 comment
Closed

#2: Rust and Gears - Python List Comprehensions #26

mre opened this issue Apr 3, 2018 · 1 comment

Comments

@mre
Copy link
Member

mre commented Apr 3, 2018

What?

Show how to port list comprehensions to Python

Why?

List comprehensions have been one thing that I was missing the most when learning Rust.
It took a while to understand that iter(), map(), filter() and collect() were a better fit for Rust.
I want to give a few common examples to make it easier for other people with the same background.

How?

Show commont list comprehensions in Python and port them to Rust one by one.
Present an alternative to defaultdict called the entry API and how to use it.

This show was inspired by #20 by @Dowwie.

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

No branches or pull requests

1 participant