@@ -640,13 +640,7 @@ rec {
640 unique [ 3 2 3 4 ]
640 unique [ 3 2 3 4 ]
641 => [ 3 2 4 ]
641 => [ 3 2 4 ]
643− unique = list:
643+ unique = foldl' (acc: e: if elem e acc then acc else acc ++ [ e ]) [];
649− in [x] ++ unique (remove x list);
651 /* Intersects list 'e' and another list. O(nm) complexity.
645 /* Intersects list 'e' and another list. O(nm) complexity.