# Named args of a function

**URL:** <https://discourse.julialang.org/t/named-args-of-a-function/86965>\
**Category:** General Usage\
**Created:** [September 8, 2022, 9:47pm UTC](https://discourse.julialang.org/t/named-args-of-a-function/86965 "2022-09-08T21:47:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwerty](https://avatars.discourse-cdn.com/v4/letter/q/4491bb/32.png) [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Post date:** [September 8, 2022, 9:47pm UTC](https://discourse.julialang.org/t/named-args-of-a-function/86965/1 "2022-09-08T21:47:43Z")

</div>

I have a function with named args:

```julia
f1(a1; a2=1, a3="a")

```

I have the Symbols :a2 and :a3 but this does not work:

```julia
f1(a1; :a2=1, :a3="a")

```

Given the symbols how do I assign a value to the named arguments of f1 in the function call?  
Thank you

* * *

Obviously I can’t write directly:

```julia
f1(a1; a2=1, a3="a")

```

because I got the symbols from another function

---

<div class="post-metadata">

**Author:** ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Post date:** [September 8, 2022, 10:02pm UTC](https://discourse.julialang.org/t/named-args-of-a-function/86965/2 "2022-09-08T22:02:02Z")

</div>

I think you want

```julia
f1(a1; :a2=>1, :a3=>"a")

```
