Adding element to each sublist with CodeBlock

Hello Everyone!
Anyone knows a solution to add the same element to the beginning of each of my sublists, with codeblock? (The size of my input list is varies.) It is working fine with the List.AddItemToFront node, but I need to achieve it with the code


See this post. I think it has the answer to your question.

You can also try the node to code function to reveal the code in DesignScript format.

Thank you! I was not aware of “node to code”.

1 Like

No problem at all! and welcome to the forum! :slight_smile:

1 Like