Skip to content

Instantly share code, notes, and snippets.

@benwilson512
Created June 30, 2011 04:07
Show Gist options
  • Save benwilson512/1055616 to your computer and use it in GitHub Desktop.
Save benwilson512/1055616 to your computer and use it in GitHub Desktop.
x = 1...5
y = x.map {|n| n**2 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment