Adding element to each sublist with CodeBlock

Hi,

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.