Comment by gibibit
2 days ago
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"));
No comments yet
Contribute on Hacker News ↗