---
title: "Comment by Alexey Rykhalskiy on \"Random Scala Tip #568: Beware of Leaking Iterators\" | Hashnode"
description: "Exactly, an iterator is stateful and can be used only once))"
url: "https://hashnode.com/posts/2025-01-15-random-scala-tip-568-beware-of-leaking-iterators/6788151e6284848a2a90b794/comment/678a18026d248e30266cfd1b"
---

[Discussion](https://hashnode.com/posts/2025-01-15-random-scala-tip-568-beware-of-leaking-iterators/6788151e6284848a2a90b794)

Comment [Random Scala Tip #568: Beware of Leaking Iterators](https://hashnode.com/posts/2025-01-15-random-scala-tip-568-beware-of-leaking-iterators/6788151e6284848a2a90b794)

[Alexey Rykhalskiy](https://hashnode.com/@djnzx)

[Jan 17, 2025](https://hashnode.com/posts/2025-01-15-random-scala-tip-568-beware-of-leaking-iterators/6788151e6284848a2a90b794/comment/678a18026d248e30266cfd1b)

Exactly, an iterator is stateful and can be used only once))
