# How to splat named tuples into functions?

**URL:** <https://discourse.julialang.org/t/how-to-splat-named-tuples-into-functions/66263>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 12, 2021, 12:03pm UTC](https://discourse.julialang.org/t/how-to-splat-named-tuples-into-functions/66263 "2021-08-12T12:03:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [August 12, 2021, 12:03pm UTC](https://discourse.julialang.org/t/how-to-splat-named-tuples-into-functions/66263/1 "2021-08-12T12:03:16Z")

</div>

I’d like to be able to do something like this:

```julia
using NLsolve

function f!(F, x)
    F[1] = (x[1]+3)*(x[2]^3-7)+18
    F[2] = sin(x[2]*exp(x[1])-1)
end

opts = (method=:newton, autodiff=:forward)

# i'd like to be able to do something like this:
nlsolve(f!, [1.0, 1.0], opts...)

```

---

<div class="post-metadata">

**Author:** ![AndiMD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andimd/32/6531_2.png) [@AndiMD](https://discourse.julialang.org/u/AndiMD)\
**Post date:** [August 12, 2021, 12:12pm UTC](https://discourse.julialang.org/t/how-to-splat-named-tuples-into-functions/66263/2 "2021-08-12T12:12:09Z")

</div>

Just use a semicolon to separate the keyword arguments:  
`nlsolve(f!, [1.0, 1.0]; opts...)`
