jashkenas--coffeescript/documentation/coffee/splices.coffee

6 lines
77 B
CoffeeScript
Raw Normal View History

2010-07-29 04:51:35 +00:00
numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
2010-01-05 03:19:45 +00:00
2010-07-29 04:51:35 +00:00
numbers[3..6] = [-3, -4, -5, -6]
2010-01-05 03:19:45 +00:00