Replace at a number of indices, a corresponding number of items
Last updated 3 years ago
ind1 = 0..List.Count(lst0)-1; ind2 = List.SetDifference(ind1,ind0); ind3 = List.Flatten([ind2,ind0],-1); bln1 = List.Contains(ind0,ind1<1>); lst1 = List.FilterByBoolMask(lst0,bln1); lst2 = List.Flatten([lst1["out"],rep0],-1); lst3 = List.SortByKey(lst2,ind3)["sortedList"];