lib/lists: add intersect and substract functions

+5
+5
lib/lists.nix
··· 233 233 xs = unique (drop 1 list); 234 234 in [x] ++ remove x xs; 235 235 236 + # Intersects list 'e' and another list 237 + intersect = e: filter (x: elem x e); 238 + 239 + # Substracts list 'e' from another list 240 + substract = e: filter (x: !(elem x e)); 236 241 }