Mirror of
forum.nim-lang.org
index
6251 :: Number of items in a tuple
[2020-04-24T13:17:34+02:00]
View Orginal
mantielero
(orginal)
[2020-04-24T13:17:34+02:00]
view original
Is there a function to know the number of items in a tuple?
pietroppeter
(orginal)
[2020-04-24T14:08:21+02:00]
view original
You can write one like this:
https://forum.nim-lang.org/t/3809#23767
solo989
(orginal)
[2020-04-24T14:25:32+02:00]
view original
tupleLen was recently added to typetraits.
mantielero
(orginal)
[2020-04-25T22:53:31+02:00]
view original
Thanks guys.