as we know
import bitOps
var x = 1'u8
x.setBits(0, 1, 2, 3)
echo x
Run
says `15`
and we can use HSlice to get the same result:
var x = 1'u8
for i in 0 .. 3:
x.setBits(i)
echo x
Run
but we can't use `x.setBits(0 .. 3)` directly. So is there a way to unpack an
HSlice to be use as varargs? In python, a list can be used like this
a = [1, 2, 3]
def f(x, y, z):
print(x, y, z)
f(*a)
Run
which says `1 2 3`
thanks
