mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
24 lines
282 B
C#
24 lines
282 B
C#
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 + '---'.
|
|
|
|
c.list: l for l in c.text.split('') if l is '-'.
|
|
|
|
c.single: c.list[1, 1][0].
|
|
|
|
print(func() == '-')
|