# Why no \`last(::Generator)\`?

**URL:** <https://discourse.julialang.org/t/why-no-last-generator/65429>\
**Category:** Internals & Design\
**Created:** [July 28, 2021, 11:37am UTC](https://discourse.julialang.org/t/why-no-last-generator/65429 "2021-07-28T11:37:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [July 28, 2021, 12:23pm UTC](https://discourse.julialang.org/t/why-no-last-generator/65429/3 "2021-07-28T12:23:55Z")

</div>

See [Getting the last element of an iterator](https://discourse.julialang.org/t/getting-the-last-element-of-an-iterator/49696/) for a previous discussion.

See also [https://github.com/JuliaLang/julia/pull/37648](https://github.com/JuliaLang/julia/pull/37648)

---

_[View the full topic](https://discourse.julialang.org/t/why-no-last-generator/65429)._
