# How to set variable to key of keyword arguments of function?

**URL:** <https://discourse.julialang.org/t/how-to-set-variable-to-key-of-keyword-arguments-of-function/18995>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 26, 2018, 6:47am UTC](https://discourse.julialang.org/t/how-to-set-variable-to-key-of-keyword-arguments-of-function/18995 "2018-12-26T06:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![orange\_si](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/orange_si/32/6526_2.png) [@orange\_si](https://discourse.julialang.org/u/orange_si)\
**Post date:** [December 27, 2018, 2:21am UTC](https://discourse.julialang.org/t/how-to-set-variable-to-key-of-keyword-arguments-of-function/18995/7 "2018-12-27T02:21:14Z")

</div>

thanks a lot, the code works and is more cleaner ! I am a fresh bird of julia, give me some time to really understand this syntax.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-set-variable-to-key-of-keyword-arguments-of-function/18995)._
