# Zip with length checking

**URL:** <https://discourse.julialang.org/t/zip-with-length-checking/16395>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 16, 2018, 11:28am UTC](https://discourse.julialang.org/t/zip-with-length-checking/16395 "2018-10-16T11:28:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mschauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mschauer/32/13946_2.png) [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Post date:** [October 16, 2018, 11:44am UTC](https://discourse.julialang.org/t/zip-with-length-checking/16395/2 "2018-10-16T11:44:18Z")

</div>

`zip(indices, takestrict(itr, length(indices)))` from `Itertools` would be a choice. Actually, I might add `zipstrict` to `Itertools`.

---

_[View the full topic](https://discourse.julialang.org/t/zip-with-length-checking/16395)._
