2010-01-26 10:52:05 -05:00
|
|
|
func: ->
|
2009-12-24 03:41:12 -05:00
|
|
|
a: 3
|
|
|
|
b: []
|
2009-12-29 08:52:26 -05:00
|
|
|
|
2009-12-24 03:41:12 -05:00
|
|
|
while a >= 0
|
2010-01-24 23:40:45 -05:00
|
|
|
b.push 'o'
|
2009-12-28 23:08:02 -05:00
|
|
|
a--
|
2009-12-24 03:41:12 -05:00
|
|
|
|
|
|
|
c: {
|
2009-12-24 20:14:53 -05:00
|
|
|
"text": b
|
2009-12-30 17:58:27 -05:00
|
|
|
other: null
|
2010-01-26 10:52:05 -05:00
|
|
|
something_else: (x) -> x + 5
|
2009-12-24 03:41:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
c: 'error' unless 42 > 41
|
|
|
|
|
|
|
|
c.text: if false
|
|
|
|
'error'
|
|
|
|
else
|
2009-12-28 23:08:02 -05:00
|
|
|
c.text + '---'
|
2009-12-25 16:21:17 -05:00
|
|
|
d = {
|
|
|
|
text = c.text
|
|
|
|
}
|
|
|
|
|
2009-12-29 09:55:37 -05:00
|
|
|
c.list: l for l in d.text.split('') when l is '-'
|
2009-12-24 03:41:12 -05:00
|
|
|
|
2009-12-28 23:08:02 -05:00
|
|
|
c.single: c.list[1..1][0]
|
2009-12-24 03:41:12 -05:00
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok func() is '-'
|