import itertools


def get_index(array, element, start=0):
    """
    Finds where an element occurs in an array or -1 if not present.
    """
    for i, v in itertools.islice(enumerate(array), start, None):
        if v == element:
            return i
    return -1