To straight up give an example it's like this:
type MatchPool[N: static[int]] = object
vals: array[N, int]
var mp = MatchPool[3](vals: [2, 4, 1])
Run
- How to use integer generics in types? adnan
- Re: How to use integer generics in types? xflywind
- How to use integer generics in types? stevejock1
- Re: How to use integer generics in types? adnan
- Re: How to use integer generics in types? Hlaaftana
