# Passing keyword arguments through a thin wrapper without explicitly writing them out

**URL:** <https://discourse.julialang.org/t/passing-keyword-arguments-through-a-thin-wrapper-without-explicitly-writing-them-out/8173>\
**Category:** General Usage\
**Created:** [January 5, 2018, 8:18am UTC](https://discourse.julialang.org/t/passing-keyword-arguments-through-a-thin-wrapper-without-explicitly-writing-them-out/8173 "2018-01-05T08:18:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [January 5, 2018, 8:25am UTC](https://discourse.julialang.org/t/passing-keyword-arguments-through-a-thin-wrapper-without-explicitly-writing-them-out/8173/2 "2018-01-05T08:25:17Z")

</div>

This is what I missed 😅

```julia
julia> f(;kwargs...) = Dict(kwargs)
f (generic function with 1 method)

julia> g(;kwargs...) = f(;kwargs...)
g (generic function with 1 method)

julia> g(a = 1, b = 2, c = 3)
Dict{Symbol,Int64} with 3 entries:
  :a => 1
  :b => 2
  :c => 3

```

Thanks to @mkborregaard in [How to collect keyword arguments in a Dict? - #5 by mkborregaard](https://discourse.julialang.org/t/how-to-collect-keyword-arguments-in-a-dict/6693/5)

---

_[View the full topic](https://discourse.julialang.org/t/passing-keyword-arguments-through-a-thin-wrapper-without-explicitly-writing-them-out/8173)._
