From 3b5f41626cebffc40a2c6254385fcf38eec08baa Mon Sep 17 00:00:00 2001 From: mtfishman Date: Wed, 11 Dec 2024 17:18:18 -0500 Subject: [PATCH] Format --- src/abstractsparsearrayinterface.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/abstractsparsearrayinterface.jl b/src/abstractsparsearrayinterface.jl index 29effde..c471ea2 100644 --- a/src/abstractsparsearrayinterface.jl +++ b/src/abstractsparsearrayinterface.jl @@ -50,7 +50,9 @@ end StoredValues(a::AbstractArray) = StoredValues(a, collect(eachstoredindex(a))) Base.size(a::StoredValues) = size(a.storedindices) Base.getindex(a::StoredValues, I::Int) = getstoredindex(a.array, a.storedindices[I]) -Base.setindex!(a::StoredValues, value, I::Int) = setstoredindex!(a.array, value, a.storedindices[I]) +function Base.setindex!(a::StoredValues, value, I::Int) + return setstoredindex!(a.array, value, a.storedindices[I]) +end storedvalues(a::AbstractArray) = StoredValues(a)