PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/documentation/coffee/slices.coffee

http://github.com/jashkenas/coffee-script
CoffeeScript | 9 lines | 5 code | 4 blank | 0 comment | 0 complexity | fa88bfe787109c1f4f5e212290c40cab MD5 | raw file
1numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
2
3start   = numbers[0..2]
4
5middle  = numbers[3...-2]
6
7end     = numbers[-2..]
8
9copy    = numbers[..]