outatime.util package
Submodules
outatime.util.agenda module
outatime.util.bisect module
- outatime.util.bisect.find_delimiters(_list: list, first_element, second_element) tuple[source]
- Given a list of elements, searches:
the index of the first element included in the given range
the index of the last element included in the given range
- Parameters
_list (list) – Input data.
first_element – Low limit of the range to search.
second_element – High limit of the range to search.
- Returns
First and last indexes of the searched range.
- Return type
tuple
- outatime.util.bisect.find_gte(_list: list, value)[source]
Find leftmost item greater than or equal to value.