Recursively lookup an item in a nested dictionary,
    using an array of indexes

    >>> _dig({"a":{"b":{"c":1}}}, "a", "b", "c")
    1

def _dig(obj, *key):
    """
    Recursively lookup an item in a nested dictionary,
    using an array of indexes

    >>> _dig({"a":{"b":{"c":1}}}, "a", "b", "c")
    1
    """
    key = _splice_index(*key)

    if len(key) == 1:
        return obj[key[0]]
    return _dig(obj[key[0]], *key[1:])