coffeescript-repl icon indicating copy to clipboard operation
coffeescript-repl copied to clipboard

Array comprehensions should give an array value (even when unassigned)

Open samme opened this issue 6 years ago • 0 comments

coffee> (food for food in ['toast', 'cheese', 'wine'])
'wine'
coffee> result = (food for food in ['toast', 'cheese', 'wine'])
[ 'toast', 'cheese', 'wine' ]

I thought these would give the same result.

samme avatar Feb 18 '18 20:02 samme