How to apply the command Flatten to a sublist

Hello everyone,

I need help to solve this problem.

I would turn my list [xi] [yi] [zi] in a list [xi] [yi].



































I tried with Flatten and but I can not apply Flatten the sublist.

Do you have any advice?

Thanks in advance for the help.


Have you tried using List.Map + Flatten as the Function of a List.Map? See Attached image

1 Like

Hi, Daniele.

I would really recommend looking into replication guides! :slight_smile: I could give you some links explaining replication guides, but the dev team have changed replication guides somewhat in the 1.0.0 release so I’m uncertain of the content’s integrity.


where can one find these replication guides? Thanks in advance!

Have a look here:

Hi joisten,
what do i do wrong? my list seems to stop after 1st item.

i also have this kind of error “Warning: Method ‘Flatten’ has been deprecated, please use method ‘DSCore.List.Flatten’ instead”

this seems to be working

Hi @guray.batur,

I not positive but the methods shown here were the means to flatten lists before dynamo introduced ‘levels’ and the ‘amt’ port.

I’m sure the code boxes work fine, but maybe try experimenting with the Flatten node in regards to levels and amts. See example below:

The Dynamo Primer has a section on this as well:



1 Like