# Can a function returns a partial function?

**URL:** <https://discourse.julialang.org/t/can-a-function-returns-a-partial-function/32413>\
**Category:** New to Julia\
**Created:** [December 18, 2019, 12:14am UTC](https://discourse.julialang.org/t/can-a-function-returns-a-partial-function/32413 "2019-12-18T00:14:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [December 18, 2019, 7:16am UTC](https://discourse.julialang.org/t/can-a-function-returns-a-partial-function/32413/5 "2019-12-18T07:16:14Z")

</div>

You should not need `eval` for this. A closure is fine, eg

```julia
f(x, y, z) = x + y + z
y, z = 2, 3
g = x -> f(x, y, z)
g(1)

```

---

_[View the full topic](https://discourse.julialang.org/t/can-a-function-returns-a-partial-function/32413)._
