Skip to content

Instantly share code, notes, and snippets.

@brendanzab
Created October 23, 2012 05:36
Show Gist options
  • Select an option

  • Save brendanzab/3936918 to your computer and use it in GitHub Desktop.

Select an option

Save brendanzab/3936918 to your computer and use it in GitHub Desktop.
fn main() {
let stuff = ~[~"one", ~"two", ~"three"];
stuff
.map(|s| str::append(~"lol", *s))
.map(|s| io::println(*s));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment