# How to call a function that returns a function efficiently

**URL:** https://discourse.julialang.org/t/how-to-call-a-function-that-returns-a-function-efficiently/11851
**Category:** General Usage
**Created:** [June 21, 2018, 11:39am UTC](https://discourse.julialang.org/t/how-to-call-a-function-that-returns-a-function-efficiently/11851 "2018-06-21T11:39:21Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![drarnau](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drarnau/32/4476_2.png) [@drarnau](https://discourse.julialang.org/u/drarnau)
#### Post date: [June 22, 2018, 8:46am UTC](https://discourse.julialang.org/t/how-to-call-a-function-that-returns-a-function-efficiently/11851/10 "2018-06-22T08:46:09Z")

</div>

Thank you.

It seems it might not be a good idea to use Julia for this one. I can’t take the creation of `valor` out of the big loop, that’s the whole point.

You can actually use the prime sign without transposing anything. In my code, the primes are created by typing`\prime` and pressing Tab. See here: [Question mark in variable names - #5 by yuyichao](https://discourse.julialang.org/t/question-mark-in-variable-names/3836/5)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-call-a-function-that-returns-a-function-efficiently/11851)._
