query
On this page

matchAnyPattern

lib.systems.inspect.matchAnyPattern

Docs pulled from | This Revision | 9 minutes ago


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

Implementation

The following is the current implementation of this function.

pattern:
    if isList pattern then
      let
        cachedPatterns = map matchPattern pattern;
      in
      attrs: any (pattern: pattern attrs) cachedPatterns
    else
      matchPattern pattern