Comment by gibibit

Comment by gibibit 3 days ago

0 replies

For reference, Rust provides a similar experience

    let names = ["Peter", "Julia", "Xi"];
    names
        .map(|name| format!("Hello, {name}"))
        .iter()
        .for_each(|greeting| println!("{greeting}! Enjoy your Rust"));