Declaring, iterating, searching typelists at compile time

70 views Asked by At

How can we work with the equivalent of boost's mpl::vector in nim ?

const mytl = [int, float, char]
template t[T](): =
  when T in mytl:
    stuff
1

There are 1 answers

1
uran On BEST ANSWER

Here's a lib that should help: https://github.com/yglukhov/typelists. Feel free to contribute in case you need anything more specific ;)