Sometimes I miss some sort of Iterator comprehension syntax sugar like Pythonâs or Haskellâs. For example, being able to do the following as sugar for a .filter_map():
let calculated_odds = [calculate(x) for x in foo.iter() if x % 2 == 1];
Also, having this in combination some useful macros for collections such as HashMap, like json! from serde_json:
let m = map!{
x => y
for (x, y) in a.iter().zip(b.iter())
};