Skip to content

Instantly share code, notes, and snippets.

@chanmix51
Created October 8, 2010 22:24
Show Gist options
  • Save chanmix51/617669 to your computer and use it in GitHub Desktop.
Save chanmix51/617669 to your computer and use it in GitHub Desktop.
import structs/HashMap
ages := HashMap<String, Int> new()
ages["arthur"] = 2
ages["john"] = 12
ages["peter"] = 23
ages["sarah"] = 24
ages each(|a, b| "%s is %d years old." printfln(a, b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment