# Get tuple length from type?

**URL:** <https://discourse.julialang.org/t/get-tuple-length-from-type/32483>\
**Category:** General Usage\
**Tags:** type, tuple\
**Created:** [December 19, 2019, 3:22pm UTC](https://discourse.julialang.org/t/get-tuple-length-from-type/32483 "2019-12-19T15:22:16Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Post date:** [February 15, 2022, 8:32pm UTC](https://discourse.julialang.org/t/get-tuple-length-from-type/32483/11 "2022-02-15T20:32:09Z")

</div>

Yep this function gets the length of a tuple, not from the tuple type ad was requested at the beginning (and as it seems the OP is referenced) . Actually I found a solution asking another question there [How can i index a tuple type?](https://discourse.julialang.org/t/how-can-i-index-a-tuple-type/76501) so nvm

Type{Tuple{…}} Is not the same as NTuple{…}

---

_[View the full topic](https://discourse.julialang.org/t/get-tuple-length-from-type/32483)._
