# Tail recursion, but modulo cons

**URL:** <https://discourse.elm-lang.org/t/tail-recursion-but-modulo-cons/8207>\
**Category:** Show and Tell\
**Created:** [February 28, 2022, 7:28am UTC](https://discourse.elm-lang.org/t/tail-recursion-but-modulo-cons/8207 "2022-02-28T07:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfmengels](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/jfmengels/32/3124_2.png) [@jfmengels](https://discourse.elm-lang.org/u/jfmengels)\
**Post date:** [February 28, 2022, 7:28am UTC](https://discourse.elm-lang.org/t/tail-recursion-but-modulo-cons/8207/1 "2022-02-28T07:28:25Z")

</div>

Tail recursion, but modulo cons

I worked on extending Elm’s tail call optimization so that it applies to more recursive functions. Hope you love the result as much as I do ❤

> **[Tail recursion, but modulo cons](https://jfmengels.net/modulo-cons/)**
>
> If you have been programming for a while, you must have heard about recursion at one point or another.
> If you work with Elm or other functional programming…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [March 10, 2022, 7:28am UTC](https://discourse.elm-lang.org/t/tail-recursion-but-modulo-cons/8207/2 "2022-03-10T07:28:47Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
