CarouselArrays.CarouselArrays
— ModuleCreated in February, 2022 by chifi - an open source software dynasty. by team odd-data This software is MIT-licensed.
CarouselArrays
CarouselArrays are arrays that can be indexed below 1 and above the length of the array.
CarouselArrays.CarouselArray
— TypeCarouselArray{T}
- dims::Vector{T}
A CarouselArray
is an Array that can be indexed infinitely to one side or another. The indexes will roll over into the other end of the Vector
stored within "dims".
example
mycarousel = CarouselArray([5, 10, 15, 20])
mycarousel[1]
5
mycarousel[0]
20
mycarousel[-1]
15
mycarousel[4]
20
mycarousel[5]
5
field info
- dims - The inner
Vector
of aCarouselArray
.
constructors
- CarouselArray{T}()
- CarouselArray{T}(x::AbstractVector)
- CarouselArray(x::AbstractVector)