Language
Nim
Compiler
nim 1.6.10
Options
$ nim c ./prog.nim
set[int8]
set[uint16]
set[range 0..65535(int)]
a1={2, 3, 4, 5, 9}
a2={0, 3, 4, 5, 6, 7}
a1 + a2={0, 2, 3, 4, 5, 6, 7, 9}
a1 * a2={3, 4, 5}
a1 - a2={2, 9}
a1.card=5
a1.len=5
2 in a1=true
a1.contains(2)=true
0 notin a1=true
a2={0, 1, 3, 4, 5, 6, 7, 8, 9, 10}
a2={0, 1, 7, 8, 9, 10}
Exit Code:
0