In KDB+ I have 2 lists of equal size, where I want to replace(probably use ssr ) strings in list1 conditioned on the values in list2.
list1:("Boy";"Toy";"Coy";"Poy")
list2:("A","B","A","B")
If list2[i]=="B" replace "oy" by "ab" So we should finally get
list1:("Boy";"Tab";"Coy";"Pab")