butoften/array

array.Slice

PotatoCloud opened this issue · 0 comments

func (arr *Array[T]) Slice(start, end int) (newArr Array[T])

why not implement this function using golang slice syntax

func (arr *Array[T]) Slice(start, end int) (newArr Array[T]) {
    return *arr[start:end]
}