# Separating values from Iterator.product() tuple

**URL:** https://discourse.julialang.org/t/separating-values-from-iterator-product-tuple/27628
**Category:** General Usage
**Created:** [August 16, 2019, 7:06pm UTC](https://discourse.julialang.org/t/separating-values-from-iterator-product-tuple/27628 "2019-08-16T19:06:40Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![DocDave](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@DocDave](https://discourse.julialang.org/u/DocDave)
#### Post date: [August 16, 2019, 9:23pm UTC](https://discourse.julialang.org/t/separating-values-from-iterator-product-tuple/27628/3 "2019-08-16T21:23:49Z")

</div>

@simeonschaub That certainly looks like what I am after, thanks!

If I am honest, I hadn’t benchmarked the functions (my bad 😳), but it is certainly ugly! For those interested, the @btime benchmarks are as follows:

```julia
function f1(args)
    @show args[1], args[2]
end

```

`> 107.107 μs (197 allocations: 6.83 KiB)`

```julia
function f2(args)
    arg1 = args[1]
    arg2 = args[2]
    @show arg1, arg2
end

```

`> 109.752 μs (197 allocations: 6.83 KiB)`

```julia
function f3((arg1, arg2))
    @show arg1, arg2
end

```

`> 111.287 μs (197 allocations: 6.83 KiB)`

---

_[View the full topic](https://discourse.julialang.org/t/separating-values-from-iterator-product-tuple/27628)._
