Created
October 25, 2013 21:19
-
-
Save tmornini/7161995 to your computer and use it in GitHub Desktop.
WTF?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):011:0> [1][0..-1] | |
=> [1] # makes sense | |
irb(main):012:0> [1][1..-1] | |
=> [] # WTF? | |
irb(main):013:0> [1][2..-1] | |
=> nil # makes sense |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment