Skip to content

Instantly share code, notes, and snippets.

@huydx
Created June 5, 2013 06:59
Show Gist options
  • Save huydx/5712096 to your computer and use it in GitHub Desktop.
Save huydx/5712096 to your computer and use it in GitHub Desktop.
Rubyで間違いやすい配列の範囲指定 ref: http://qiita.com/items/7f9737a191bb92cca81d
arr = [1,2,3,4,5,6]
arr[1..2]
arr[1,2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment