Skip to main content

any

Assert that at least one entry in the map satisfies a condition. Empty maps return false.


Examples

Any kernel parameter is named kernel.kptr_restrict:

kernel.parameters.any(key == "kernel.kptr_restrict")