# Getting the last element of an iterator

**URL:** https://discourse.julialang.org/t/getting-the-last-element-of-an-iterator/49696
**Category:** General Usage
**Tags:** question
**Created:** [November 6, 2020, 6:02pm UTC](https://discourse.julialang.org/t/getting-the-last-element-of-an-iterator/49696 "2020-11-06T18:02:17Z")
**Posts on this page:** 1
**Showing post:** 46

<div class="post-metadata">

### Author: ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)
#### Post date: [November 12, 2021, 9:51pm UTC](https://discourse.julialang.org/t/getting-the-last-element-of-an-iterator/49696/46 "2021-11-12T21:51:31Z")

</div>

Incidentally I actually used `last` for some kind of fixed point iteration [here](https://discourse.julialang.org/t/trampolines/71351/6) and defining it without type constraint seemingly broke my Atom IDE 🙂

---

_[View the full topic](https://discourse.julialang.org/t/getting-the-last-element-of-an-iterator/49696)._
