mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
27 lines
313 B
CoffeeScript
27 lines
313 B
CoffeeScript
func: =>
|
|
a: 3
|
|
b: []
|
|
while a >= 0
|
|
b.push('o')
|
|
a--.
|
|
|
|
c: {
|
|
"text": b
|
|
}
|
|
|
|
c: 'error' unless 42 > 41
|
|
|
|
c.text: if false
|
|
'error'
|
|
else
|
|
c.text + '---'.
|
|
|
|
d = {
|
|
text = c.text
|
|
}
|
|
|
|
c.list: l for l in d.text.split('') if l is '-'.
|
|
|
|
c.single: c.list[1..1][0].
|
|
|
|
print(func() == '-')
|