~dblsaiko/nix-corelib

076531fcb8edf3aa5a36e2e559be476fd4d3f794 — Marco Rebhan 9 months ago 3201198 master
This is builtins.elem
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/list.nix
M lib/list.nix => lib/list.nix +2 -2
@@ 1,5 1,5 @@
{lib, ...}: let
  inherit (builtins) any elemAt foldl' genList length listToAttrs;
  inherit (builtins) elemAt foldl' genList length listToAttrs;
  inherit (lib) min;
  inherit (lib.set) mapNames;



@@ 128,7 128,7 @@
  # Returns whether `list` contains `el`.
  #
  # contains :: a -> [a] -> bool
  contains = el: list: any (x: el == x) list;
  contains = builtins.elem;

  # Returns `list` with all duplicate elements removed. Each element will keep
  # its first position in the list.