describe 'List Comprehensions', ->
it 'should support for expressions inside list definitions', ->
a = [1,2,3,4]
b = [x+1 for x in a]
a.should.eql [1,2,3,4]
b.should.eql [2,3,4,5]
Where this would
describe 'List Comprehensions', ->
it 'should support for expressions inside list definitions', ->
a = [1,2,3,4]
b = [x+1 for x in a]
a.should.eql([1,2,3,4])
b.should.eql([2,3,4,5])
This code would not compile:
Where this would