# How to use UniTuple in function reference signature when the function returns multiple values

**URL:** <https://numba.discourse.group/t/how-to-use-unituple-in-function-reference-signature-when-the-function-returns-multiple-values/682>\
**Category:** Community Support\
**Created:** [April 22, 2021, 9:10pm UTC](https://numba.discourse.group/t/how-to-use-unituple-in-function-reference-signature-when-the-function-returns-multiple-values/682 "2021-04-22T21:10:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uliw](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/uliw/32/303_2.png) [@uliw](https://numba.discourse.group/u/uliw)\
**Post date:** [April 22, 2021, 9:10pm UTC](https://numba.discourse.group/t/how-to-use-unituple-in-function-reference-signature-when-the-function-returns-multiple-values/682/1 "2021-04-22T21:10:52Z")

</div>

I am building a list of function references, for functions that return multiple values in the following way:

```auto
return 2.1, 3.1, 4.5, 2.1, 1.0 # 

```

I have however trouble to create the correct function signature in order to create the list of function references. At the moment, I use

```auto
 fn = numba.typed.List.empty_list(
        types.ListType(types.float64)( # return value
            types.int64, # i
            types.ListType(types.float64[::1]), # a1
            types.ListType(types.float64[::1]), # a2
            types.ListType(types.float64), 
        ).as_type()
    )

```

but that fails. The actual return type is UniTuple(float64 x 5), but I could not figure out how to specify this in the above signature

What is the best way to return multiple values list from a jitted function, and how do I specify this in the signature of a list of function references?

For context, this is in relation to an earlier (solved) post [List mistaken as list when creating list of function references](https://numba.discourse.group/t/list-mistaken-as-list-when-creating-list-of-function-references/677)

---

<div class="post-metadata">

**Author:** ![luk-f-a](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/luk-f-a/32/56_2.png) [@luk-f-a](https://numba.discourse.group/u/luk-f-a)\
**Post date:** [April 23, 2021, 8:14am UTC](https://numba.discourse.group/t/how-to-use-unituple-in-function-reference-signature-when-the-function-returns-multiple-values/682/2 "2021-04-23T08:14:14Z")

</div>

hi @uliw , I think `types.UniTuple(types.float64, 5)` is what you are looking for

---

<div class="post-metadata">

**Author:** ![uliw](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/uliw/32/303_2.png) [@uliw](https://numba.discourse.group/u/uliw)\
**Post date:** [April 23, 2021, 1:08pm UTC](https://numba.discourse.group/t/how-to-use-unituple-in-function-reference-signature-when-the-function-returns-multiple-values/682/3 "2021-04-23T13:08:48Z")

</div>

Thanks, I thought I tried this, but must have been a typo somewhere. the above is now working.
