def consecutive(span):
    """
    Check if a span of indices is consecutive
    :param span: the span of indices
    :return: whether the span of indices is consecutive
    """
    return [i - span[0] for i in span] == range(span[-1] - span[0] + 1)