jashkenas/coffee-script — Issue #1991: Extended range support
Author: johnnywengluu
Created: 2011-12-30 14:50:44+00:00
State: open

In Haskell you can do:

> [10, 12.5..30]
[10.0,12.5,15.0,17.5,20.0,22.5,25.0,27.5,30.0]

> [10,8..1]
[10,8,6,4,2]

> [10,8..2]
[10,8,6,4,2]

I feel it's very powerful, neat functionality that could be implemented in CoffeeScript easily.