less confusing part selection
This commit is contained in:
parent
65b4fbf539
commit
861e13713e
1 changed files with 1 additions and 4 deletions
|
@ -13,10 +13,7 @@ proc intersects(a, b: set[uint8]): bool =
|
|||
a * b != {}
|
||||
|
||||
let compare =
|
||||
case paramStr(1):
|
||||
of "1":
|
||||
eitherContains
|
||||
of "2":
|
||||
if paramCount() > 0 and paramStr(1) == "2":
|
||||
intersects
|
||||
else:
|
||||
eitherContains
|
||||
|
|
Loading…
Add table
Reference in a new issue