Skip to content

Instantly share code, notes, and snippets.

@joshuastr
Created April 27, 2016 14:46
Show Gist options
  • Save joshuastr/8d0a422bf884607e19cfe98699b4fd8f to your computer and use it in GitHub Desktop.
Save joshuastr/8d0a422bf884607e19cfe98699b4fd8f to your computer and use it in GitHub Desktop.
list = {'yvr' => 'Vancouver', 'yba' => 'Banff', 'yyz' => 'Toronto', 'yxx' => 'Abbotsford', 'ybw' => 'Calgary'}
# Why is it returning nil instead of first element of the list above
puts list.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment