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