1 ## our_shell: ysh
2
3 #### = to pretty print
4 = 1 + 2 * 3
5 ## STDOUT:
6 (Int) 7
7 ## END
8
9 #### 'call' to ignore return value
10 call 1 + 2 * 3
11
12 var strs = %(a b)
13 call len(strs)
14 call strs->append('c')
15 write -- @strs
16
17 # integer types too
18 const L = [5, 6]
19 call L->append(7)
20 write -- @L
21
22 write __
23
24 call L->pop()
25 write -- @L
26
27 ## STDOUT:
28 a
29 b
30 c
31 5
32 6
33 7
34 __
35 5
36 6
37 ## END