Tamas
You would call `nfields(NTuple{4,Int})` for this.-erik On Wed, Mar 23, 2016 at 6:24 AM, Tamas Papp <[email protected]> wrote: > Hi, > > How do I get the length of a tuple _type_? In other words, is there a > standard idiom for > > foo{N}(::Type{NTuple{N}}) = N > > Best, > > Tamas -- Erik Schnetter <[email protected]> http://www.perimeterinstitute.ca/personal/eschnetter/
