Replace items in sublist?

I’m looking for a way to replace items in sublists. List.AddItemToEnd with Longest lacing works fine but I want to replace, not add. List.ReplaceItemAtIndex only seems to work on the top list.

 

See if this helps…

List.Combine might be another option:

Dimitar, in your example, don’t we want the values of the lower right Watch to show 0,0 = a 0,1 = b 0, 2 = c ?

Think of replacing a column of values in a spreadsheet.

You’ll need to be more specific. If you simply need to replace the head of the main list, you can try the following:

Looking for a result in your sample, Dimitar, like in the image below. a b c should be the 0th place in the sublists. Cheers, DynamoSandbox_edit1

DynamoSandbox_2016-01-20_10-07-18

1 Like

20160120-3

It looked so easy…

ReplaceSubList

l<2>, not 1<2>

Arggh, didn’t us draughtsmen go through having characters not to use back in the 1980s or earlier?

I published a Node, anyway. Perhaps it will make the solution more searchable: “ReplaceSubList

Here are both ways…