nessai.utils.structures
Utilities for manipulating python structures such as lists and dictionaries.
Module Contents
Functions
|
Replace (in place) an entry in a list with a given element. |
- nessai.utils.structures.replace_in_list(target_list, targets, replacements)
Replace (in place) an entry in a list with a given element.
- Parameters
- target_listlist
List to update
- targetslist
List of items to update
- replacementslist
List of replacement items