I have two lists of string elements:
lis = {{"Abc","Def"},{"Ghi","Abc"},{"Mno","Pqrs"}};
abbrPool = {{"Abc","A"},{"Mno","M"}};
I would like to replace certain elements in the first list with the matching second elements from the second list, to give:
res = {{"A","Def"},{"Ghi","A"},{"M","Pqrs"}}
I can do this by brute force using Cases/DeleteCases, but wonder if there is a more elegant solution.