links.utils
recurse_parse_variables
def recurse_parse_variables(variables: Dict, predicate: Callable[[str, Any],
bool],
apply: Callable[[Any], Any]) -> Dict
Parse Variables
Recursively traverse variables, applying the apply function to the value if the predicate returns True.
Arguments:
variables
Dict - The dictionary to parse. predicate (Callable[[str, Any], bool]):The path this is inapply
Callable[[Any], Any] - description
Returns:
Dict
- description
recurse_parse_variables_with_operation
def recurse_parse_variables_with_operation(
variables: Dict, operation: Operation,
predicate: Callable[[str, Any], bool], apply: Callable[[Any],
Any]) -> Dict
Parse Variables
Recursively traverse variables, applying the apply function to the value if the predicate returns True.
Arguments:
variables
Dict - The dictionary to parse.predicate
Callable[[str, Any], bool] - descriptionapply
Callable[[Any], Any] - description
Returns:
Dict
- description