Skip to content

Instantly share code, notes, and snippets.

@andrewharmellaw
Created May 21, 2013 19:17
Show Gist options
  • Save andrewharmellaw/5622420 to your computer and use it in GitHub Desktop.
Save andrewharmellaw/5622420 to your computer and use it in GitHub Desktop.
map syntax
// map a function to double the numbers over the list
a.map {v => v * 2} should equal(List(__, __, __, __, __))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment