Files
coffeescript/test/fixtures/execution/test_ranges_and_slices.coffee

11 lines
201 B
CoffeeScript

array: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
a: array[7..9]
b: array[2...4]
result: a.concat(b).join(' ')
print result is "7 8 9 2 3"
countdown: [10..1].join(' ')
print countdown is "10 9 8 7 6 5 4 3 2 1"