query
On this page

filter

builtins.filter

Primop
Docs pulled from | This Revision | 12 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 declared in a .nix file

Noogle also knows

Aliases
Detected Type
filter :: (a -> Bool) -> [a] -> [b]