Skip to content

Instantly share code, notes, and snippets.

@sdqali
Created September 19, 2011 18:07
Show Gist options
  • Save sdqali/1227138 to your computer and use it in GitHub Desktop.
Save sdqali/1227138 to your computer and use it in GitHub Desktop.
first = [1, 2, 3]
second = first.map do |element|
element + 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment