Skip to content

Instantly share code, notes, and snippets.

@kv109
Created October 13, 2010 14:34
Show Gist options
  • Save kv109/624139 to your computer and use it in GitHub Desktop.
Save kv109/624139 to your computer and use it in GitHub Desktop.
'&' create a proc object
(1..5).map{|n|n.succ}
(1..5).map(&:succ)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment