sS addToLocalMechList_uniq(S listName, S text) { ret addToLocalMechList_uniq(listName, lines(text)); } sS addToLocalMechList_uniq(S listName, Collection lines) { LS existing = tlft(localMechList_opt_raw_fresh(listName)); LS newLines = listMinusSet(lines, existing); if (empty(newLines)) ret "No change"; appendToLocalMechList(listName, lines(newLines)); ret n2(l(newLines), "line") + " added"; }