1 # Oil Keywords
2
3 #### = to pretty print
4 = 1 + 2 * 3
5 ## STDOUT:
6 (Int) 7
7 ## END
8
9 #### _ to ignore return value
10 _ 1 + 2 * 3
11
12 var strs = %(a b)
13 _ len(strs)
14 _ append(strs, 'c')
15 write -- @strs
16
17 # integer types too
18 const L = [5, 6]
19 _ append(L, 7)
20 write -- @L
21
22 write __
23
24 _ pop(L) # could also be pop :L
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