Merge all items in 1 branch, without merging the branches

Hi,

I got a question regarding merging items in a list together without merging/flatten the entire list.

My problem:
I got a code of consisting of 6 values and would like to compute only the first 3 items;

{2;2;2;3;3;3} --> {2;2;2}
{4;4;4;6;6;6} --> {4;4;4}

the concat node does not work because it will get after each number.
any suggestions?

thank you in advance :slight_smile:

1 Like

Hi!

thank you for your answer. But unfortunately it is not yet what I am searching for. Let me try to explain it a bit better :).
In fact, I would only have to know how I can convert the list on the left hand side, to the lists on right hand side :slight_smile: .
Your solution almost works, however it does not work when a decimal number is involved)

thanks again! :slight_smile:

Its not really clear what the ultimate goal is here, but it sound like you are trying to achieve something like Trim Tree.

But based on your first post, you could also do this.

ahh nice! Multiple good answers.
Thank you! :+1: :+1:

1 Like