# Improve this \`unpipe\` function?

**URL:** <https://forum.elixirforum.com/t/improve-this-unpipe-function/64462>\
**Category:** Questions\
**Tags:** macros, ast, sourceror\
**Created:** [June 22, 2024, 6:25pm UTC](https://forum.elixirforum.com/t/improve-this-unpipe-function/64462 "2024-06-22T18:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zachdaniel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/zachdaniel/32/31980_2.png) [@zachdaniel](https://forum.elixirforum.com/u/zachdaniel)\
**Post date:** [June 22, 2024, 6:39pm UTC](https://forum.elixirforum.com/t/improve-this-unpipe-function/64462/4 "2024-06-22T18:39:57Z")

</div>

Ahhh, interesting. Only pipes where there isn’t a 2 or more pipes. Neat idea 🙂 In that case your traverse + prev/next strategy looks like the best way to go about this IMO. It’s a benefit of Zipper that you actually _don’t_ need an accumulator to do this kind of thing. It would only add complexity IMO.

---

_[View the full topic](https://forum.elixirforum.com/t/improve-this-unpipe-function/64462)._
