# List parameter in function

**URL:** <https://forum.dynamobim.com/t/list-parameter-in-function/56884>\
**Category:** Lists-Logic\
**Created:** [November 3, 2020, 6:05pm UTC](https://forum.dynamobim.com/t/list-parameter-in-function/56884 "2020-11-03T18:05:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![at\_yan](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@at\_yan](https://forum.dynamobim.com/u/at_yan)\
**Post date:** [November 3, 2020, 6:05pm UTC](https://forum.dynamobim.com/t/list-parameter-in-function/56884/1 "2020-11-03T18:05:45Z")

</div>

Hi, I’m new of Dynamo.

When I pass a list as an argument of a function defined in a code block, I want to treat the argument as the original list, but it seems to be decomposed individually.

![arg_of_function](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e1684a32c2c34140334c9324ea7f7c1140e67a5c.png)

I want this function to return 3 as the answer.  
What should I do now?

---

<div class="post-metadata">

**Author:** ![at\_yan](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@at\_yan](https://forum.dynamobim.com/u/at_yan)\
**Post date:** [November 3, 2020, 6:20pm UTC](https://forum.dynamobim.com/t/list-parameter-in-function/56884/2 "2020-11-03T18:20:58Z")

</div>

I found my mistake. I just need to specify the argument types as a list.

![arg_of_function2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/110db6126214b77afdba1d48baed73a38e5eb50b.png)

thank you.
