# Original until() function

**URL:** <https://discourse.julialang.org/t/original-until-function/116903>\
**Category:** Modelling & Simulations\
**Tags:** question, agents, agentsjl\
**Created:** [July 11, 2024, 11:28am UTC](https://discourse.julialang.org/t/original-until-function/116903 "2024-07-11T11:28:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Khan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sahil_khan/32/47573_2.png) [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Post date:** [July 11, 2024, 11:28am UTC](https://discourse.julialang.org/t/original-until-function/116903/1 "2024-07-11T11:28:00Z")

</div>

Hello everyone,

Can someone point me to location of this function `until()` which is used as follow ` while until(s, t0, n, model) ....something.... end` in agents.jl. I want to check the original function. I was looking on github but was unsuccessful :(.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [July 11, 2024, 12:20pm UTC](https://discourse.julialang.org/t/original-until-function/116903/2 "2024-07-11T12:20:33Z")

</div>

> <https://github.com/JuliaDynamics/Agents.jl/blob/051f62b3867d327a197ea330869ba20759a78f6d/src/simulations/step.jl#L37>

indeed, it was hard to find it by searching `until`, but searching `until(` gave this as first result 😃

You can also use the `@edit` macro, but you need to know the input arguments.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [July 11, 2024, 12:33pm UTC](https://discourse.julialang.org/t/original-until-function/116903/3 "2024-07-11T12:33:38Z")

</div>

> [@Datseris](#):
>
> You can also use the `@edit` macro, but you need to know the input arguments.

You could also type `methods(until)` to see a list of methods and where they are defined.
