v/vlib/v/tests/repl/array.repl

8 lines
82 B
Plaintext

mut a := [1, 2, 3]
b := [4, 5]
a << b
a = a.filter(it%2==0)
a
===output===
[2, 4]