# FUN: Making Curried Functions Work in the Presence of Free Variables

**URL:** <https://discourse.elm-lang.org/t/fun-making-curried-functions-work-in-the-presence-of-free-variables/10922>\
**Category:** Show and Tell\
**Created:** [September 29, 2026, 11:16am UTC](https://discourse.elm-lang.org/t/fun-making-curried-functions-work-in-the-presence-of-free-variables/10922 "2026-09-29T11:16:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)\
**Post date:** [September 29, 2026, 11:16am UTC](https://discourse.elm-lang.org/t/fun-making-curried-functions-work-in-the-presence-of-free-variables/10922/1 "2026-09-29T11:16:53Z")

</div>

We pick up where we left off with FUN to “fix” curried functions so they work the way we expected. We end up rediscovering closures and learning about its history in relation to SECD, LISP, and Scheme.

> **[FUN: Making Curried Functions Work in the Presence of Free Variables | Tiny...](https://blog.tinyinterpreters.dev/posts/fun-currying-free-variables/)**
>
> Fix a subtle problem with currying and free variables by changing what FUN stores in a function value, uncovering closures along the way.

---

<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:** [October 9, 2026, 11:17am UTC](https://discourse.elm-lang.org/t/fun-making-curried-functions-work-in-the-presence-of-free-variables/10922/2 "2026-10-09T11:17:08Z")

</div>

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