list_compression-0.1.0 has been yanked.
A crate that provides a MBE to simulate the 'lists by understanding' of python in Rust and almost a zero-cost abstraction.
The macro takes an expression to use in a for loop, a pattern for this, a collection and a optional boolean expression, all of them separated with commas.
Usage
Because here we used a boolean the default code never reaches.
let vec = vec!;
// needed here to prevent warnings
let vec = py_list!;
assert_eq!;