def list_in_list(a, l):
    """Checks if a list is in a list and returns its index if it is (otherwise
    returns -1).
    
    Parameters
    ----------
    a : list()
        List to search for.
    l : list()
        List to search through.
    """
    return next((i for i, elem in enumerate(l) if elem == a), -1)