Is that possible?
let s = {'a'..'z'}
echo s.inverse # ?
You can do something like:
let u8 = {char(0)..char(255)}
let s = {'a'..'z'}
echo u8 - s
P.S. The char set is stored as 256 bit vector right?
Yes,
sizeof({'a'..'z'}) == 32
But
sizeof(set['a'..'z']) == 4
The name in mathematics is "set complement" not "inverse" and there is a func in a stdlib module for this:
import std/setutils
echo complement({'a'..'z'})