Snippet #2769 (by Ekleog, python)

  • #2769
Expires in: 0 minutes View Raw
  1. diff --git a/lib/lists.nix b/lib/lists.nix
  2. index 9f2ccc00caf..30d87ece664 100644
  3. --- a/lib/lists.nix
  4. +++ b/lib/lists.nix
  5. @@ -633,8 +633,7 @@ rec {
  6.     else
  7.       let
  8.         x = head list;
  9. -        xs = unique (drop 1 list);
  10. -      in [x] ++ remove x xs;
  11. +      in [x] ++ unique (remove x list);
  12.   /* Intersects list 'e' and another list. O(nm) complexity.

Reply to this snippet →

Honeypot, don't fill.
⌘+⏎ or Ctrl+⏎