---------------------------------------------------------------------- This is the API documentation for the gdtest_toc_title library. ---------------------------------------------------------------------- ## Functions Public functions index(items: list) -> dict Build an index from a list of items. Parameters ---------- items : list The items to index. Returns ------- dict A dictionary mapping each item to its position. Examples -------- >>> index(["a", "b", "c"]) {'a': 0, 'b': 1, 'c': 2} lookup(key: str) -> str Look up a value by key. Parameters ---------- key : str The key to look up. Returns ------- str The value associated with the key. Examples -------- >>> lookup("name") 'name'