Skip to content
Permalink
Browse files

Merge pull request #59369 from Ekleog/unique-fix

lib: improve the implementation of the unique function
  • Loading branch information...
edolstra committed Apr 15, 2019
2 parents 4e3b5a0 + 8319ead commit 9f5ba91c7a9750483206b0df4d0b0fc1d903c88a
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/lists.nix
@@ -633,8 +633,7 @@ rec {
else
let
x = head list;
xs = unique (drop 1 list);
in [x] ++ remove x xs;
in [x] ++ unique (remove x list);

/* Intersects list 'e' and another list. O(nm) complexity.

0 comments on commit 9f5ba91

Please sign in to comment.
You can’t perform that action at this time.