mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
changing array comprehension filters from 'where' to 'when' to mirror case/when
This commit is contained in:
@@ -21,7 +21,7 @@ func: =>
|
||||
text = c.text
|
||||
}
|
||||
|
||||
c.list: l for l in d.text.split('') where l is '-'
|
||||
c.list: l for l in d.text.split('') when l is '-'
|
||||
|
||||
c.single: c.list[1..1][0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user