# Equivalent of Stateful in IterTools

**URL:** https://discourse.julialang.org/t/equivalent-of-stateful-in-itertools/93510
**Category:** General Usage
**Created:** [January 25, 2023, 1:41pm UTC](https://discourse.julialang.org/t/equivalent-of-stateful-in-itertools/93510 "2023-01-25T13:41:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)
#### Post date: [January 25, 2023, 1:41pm UTC](https://discourse.julialang.org/t/equivalent-of-stateful-in-itertools/93510/1 "2023-01-25T13:41:48Z")

</div>

Hello,

The package `Base.Iterators` has been deprecated for many years now, in favor of IterTools.  
But I don’t see the equivalent of the `Stateful` iterator in `IterTools`’ documentation.  
Is it in another package ?

---

<div class="post-metadata">

### Author: ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)
#### Post date: [January 25, 2023, 1:45pm UTC](https://discourse.julialang.org/t/equivalent-of-stateful-in-itertools/93510/2 "2023-01-25T13:45:38Z")

</div>

Same for the lazy `Iterators.reverse`. There’s no equivalent in `IterTools`. `Base.reverse`’s docstring even points to `Base.Iterators` for the lazy version.

How come `IterTools` has less functionalities than `Iterators`?
