diff --git a/src/FillArrays.jl b/src/FillArrays.jl index 6b68c41f..475884f2 100644 --- a/src/FillArrays.jl +++ b/src/FillArrays.jl @@ -23,7 +23,8 @@ import Base: oneto """ AbstractFill{T, N, Axes} <: AbstractArray{T, N} -Supertype for lazy array types whose entries are all equal to constant. +Supertype for lazy array types whose entries are all equal. +Subtypes of `AbstractFill` should implement [`FillArrays.getindex_value`](@ref) to return the value of the entries. """ abstract type AbstractFill{T, N, Axes} <: AbstractArray{T, N} end const AbstractFillVector{T} = AbstractFill{T,1} @@ -145,7 +146,7 @@ Fill{T,0}(x, ::Tuple{}) where T = Fill{T,0,Tuple{}}(convert(T, x)::T, ()) # ambi @inline size(F::Fill) = map(length, F.axes) """ - getindex_value(F::AbstractFill) + FillArrays.getindex_value(F::AbstractFill) Return the value that `F` is filled with.