Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warning: default `to_a' will be obsolete
- irb> (1..4).to_a
- => [1, 2, 3, 4]
- irb> 1..4.to_a
- (irb):1: warning: default `to_a' will be obsolete
- ArgumentError: bad value for range
- from (irb):1
- 0..10.to_a
- (0..10).to_a
- >> a=*(1..10)
- => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- Array (1..10)
- => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- (1..10).to_a
- => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Add Comment
Please, Sign In to add comment