Intersection of two lists, keeping duplicates in the first list August 12, 2022 by Magenaut I have two flat lists where one of them contains duplicate values. For example,