@classmethod
def range(cls, start, end=None, step=1):
    """Create a Array from range.

        >>> Array.range(2, 10, 2).to_list()
        [2, 4, 6, 8]
        >>> Array.range(3).to_list()
        [0, 1, 2]
        """
    if end is None:
        start, end = 0, start
    return cls(range(start, end, step))
