blob: c669a786ce8aae95447263cf8b1db5fae86063db (
plain)
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
|
test Test:
let list1 = [ 1 ]
let list2 = [ 2, 3 ]
let empty = [ ]
node n
let c1 = concat [[ 1 ]]
for i in c1:
shell on n:
echo "c1 $i"
local:
shell on n:
echo "c1-end"
let c2 = concat [[ 1 ], [], empty]
for i in c2:
shell on n:
echo "c2 $i"
local:
shell on n:
echo "c2-end"
let c3 = concat [ list1, list2, [ 6, 5 ], list2 ]
for i in c3:
shell on n:
echo "c3 $i"
local:
shell on n:
echo "c3-end"
let c4 = list1 ++ list2 ++ [ 6, 5 ] ++ list2
for i in c4:
shell on n:
echo "c4 $i"
local:
shell on n:
echo "c4-end"
|