toolkit._iter
Functions:
-
flatten– -
is_subsequence– -
merge_mapping–Updates the original dict with the new data. Similar to
dict.update(), but works with nested dicts.
flatten
flatten(iterable: _T | Iterable[_T] | Iterable[Iterable[_T]] | Iterable, base_type: tuple[type, ...] = (str, bytes)) -> Iterable[_T]
Source code in src/toolkit/_iter/_sequence.py
9 10 11 12 13 14 15 16 17 18 19 20 21 | |
is_subsequence
Source code in src/toolkit/_iter/_sequence.py
24 25 26 27 28 29 30 31 | |
merge_mapping
Updates the original dict with the new data. Similar to dict.update(), but works with nested dicts.
References
- [ConfZ/confz/loaders/loader.py:L10-L28)(https://github.com/Zuehlke/ConfZ/blob/6c99cc2a2938e231590dceeef66749ccf2eb6b4c/confz/loaders/loader.py#L10-L28)
Source code in src/toolkit/_iter/_mapping.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |