acidbase.match_nested

acidbase.match_nested(x: Hashable, table: dict | list) Hashable | None

Recursively search for x in a nested dict/list structure.

Parameters:
  • x (object) – Value to search for.

  • table (dict or list) – Nested structure.

Returns:

The matched value, or None if not found.

Return type:

object or None