macro_rules! foreach {
($range:expr, $body:expr) => { ... };
}Expand description
ForEach over a range or a collection.
ⓘ
foreach!(0..4, |i| text(&format!("row {i}")))
foreach!(&["a", "b", "c"], |s| text(s))