# Unbound type List Motoko(M0029)

**URL:** https://forum.dfinity.org/t/unbound-type-list-motoko-m0029/62010
**Category:** Motoko
**Created:** [December 30, 2025, 2:15pm UTC](https://forum.dfinity.org/t/unbound-type-list-motoko-m0029/62010 "2025-12-30T14:15:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wangyan](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wangyan](https://forum.dfinity.org/u/wangyan)
#### Post date: [December 30, 2025, 2:15pm UTC](https://forum.dfinity.org/t/unbound-type-list-motoko-m0029/62010/1 "2025-12-30T14:15:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/6/6/66166b280486b814fb018af3f8b13a10da5a2ec3.png)

Is List can not be a return value？

---

<div class="post-metadata">

### Author: ![timo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/timo/32/5543_2.png) [@timo](https://forum.dfinity.org/u/timo)
#### Post date: [December 30, 2025, 2:54pm UTC](https://forum.dfinity.org/t/unbound-type-list-motoko-m0029/62010/2 "2025-12-30T14:54:22Z")

</div>

You should return type Array instead. If x is the List you want to return then write x.toArray() at the end of your function.
