1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
do
(x)<- map {1,2,3}
x * 2
do
(x)<- map _,{1,2,3}
x * 2
do
(x)<- filter _, do
(x)<- map _,{1,2,3,4}
x * 2
x > 2
do
(data)<- http?.get "ajaxtest"
body[".result"]\html data
(processed)<- http.post "ajaxprocess", data
body[".result"]\append processed
<- setTimeout 1000
print "done"
do
<- syncStatus
(err, data="nil")<- loadAsync "file.yue"
if err
print err
return
(codes)<- compileAsync data
func = loadstring codes
func!
do
<- f1
<- f2
do
<- f3
<- f4
<- f5
<- f6
f7!
do
:result,:msg = do
(data)<- receiveAsync "filename.txt"
print data
(info)<- processAsync data
check info
print result,msg
totalSize = (for file in *files
(data)<- loadAsync file
addToCache file,data) |> reduce 0,(a,b)-> a+b
propA = do
(value)<= property => @_value
print "old value: #{@_value}"
print "new value: #{value}"
@_value = value
propB = do
<= property _, (value)=>
print "old value: #{@_value}"
print "new value: #{value}"
@_value = value
@_value
alert "hi"
nil
|