Yes, this is how you do this, but in python
doc.rust-lang.org/std/iter/tra