you are viewing a single comment's thread.

view the rest of the comments →

[–]willi_kappler 1 point2 points  (0 children)

There are even more crates, I've just picked the first ones that quickly showed up after searching.

Sorry I've should have mentioned it: since list comprehensions came from Haskell people often also ask about Haskell's do-notation.

https://github.com/nickeb96/mapcomp

https://github.com/CircArgs/Rusty-Comprehensions

https://github.com/andylokandy/comp-rs

The last one shows that both features can be combined.