query
On this page

elem

lib.strings.elem

Primop
Docs pulled from | This Revision | about 2 hours ago

Takes 2 arguments

x, xs


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


Noogle detected

Aliases

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

Implementation

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