query
On this page

elem

builtins.elem

Primop
Docs pulled from | This Revision | 8 minutes ago

Takes 2 arguments

x, xs


Return true if a value equal to x occurs in the list xs, and false otherwise.

This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.

Noogle detected

Aliases

Detected Type
elem :: a -> [b] -> Bool

Implementation

This function is implemented in c++ and is part of the native nix runtime.