import macros import strutils import sequtils import sets macro toTuple*(arr: auto, cnt: static[int]): auto = let t = genSym(); result = quote do: (let `t` = `arr`; ()) for i in 0..