# How to pass first argument of a function as default and only input second argument

**URL:** https://discourse.julialang.org/t/how-to-pass-first-argument-of-a-function-as-default-and-only-input-second-argument/24426
**Category:** New to Julia
**Tags:** question
**Created:** [May 21, 2019, 12:09pm UTC](https://discourse.julialang.org/t/how-to-pass-first-argument-of-a-function-as-default-and-only-input-second-argument/24426 "2019-05-21T12:09:14Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [May 21, 2019, 12:47pm UTC](https://discourse.julialang.org/t/how-to-pass-first-argument-of-a-function-as-default-and-only-input-second-argument/24426/2 "2019-05-21T12:47:28Z")

</div>

Consider using [keyword arguments](https://docs.julialang.org/en/v1/manual/functions/#Keyword-Arguments-1).

Also, please [quote your code](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-pass-first-argument-of-a-function-as-default-and-only-input-second-argument/24426)._
