List parameter in function

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

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

1 Like

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

arg_of_function2

thank you.

3 Likes