query
On this page

filter

builtins.filter

Primop
Docs pulled from | This Revision | 9 minutes ago

Takes 2 arguments

f, list


Return a list consisting of the elements of list for which the function f returns true.

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
filter :: (a -> Bool) -> [a] -> [a]

Implementation

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