# Tullio & AxisKeys can dummy variables refer to named keys

**URL:** <https://discourse.julialang.org/t/tullio-axiskeys-can-dummy-variables-refer-to-named-keys/110233>\
**Category:** General Usage\
**Tags:** question, tullio, axiskeys, dimensionaldata\
**Created:** [February 15, 2024, 4:31am UTC](https://discourse.julialang.org/t/tullio-axiskeys-can-dummy-variables-refer-to-named-keys/110233 "2024-02-15T04:31:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lincoln\_Hannah](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lincoln_hannah/32/19198_2.png) [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Post date:** [February 15, 2024, 4:31am UTC](https://discourse.julialang.org/t/tullio-axiskeys-can-dummy-variables-refer-to-named-keys/110233/1 "2024-02-15T04:31:57Z")

</div>

Is there a more succinct way to do this?

```julia
ka = KeyedArray( ones(2,2), I=[:a,:b], J=[:x,:y] )

@tullio x[i,j] := ( ka[i,j], axiskeys(ka)[1][i], axiskeys(ka)[2][j]) 

```

Something like

```julia
@tullio x[i,j] := ( ka(i,j), i, j ) 

```

That is, can the dummy variables `i,j` refer to the named keys rather that numbered indices.
