We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Base.setindex!
1 parent 6a75e3c commit 1fc8290Copy full SHA for 1fc8290
src/write_once_read_many.jl
@@ -25,6 +25,7 @@ Base.get(w::WriteOnceReadMany{<:Dict}, a, b) = get(w._raw_data, a, b)
25
function Base.setindex!(w::DynamicQuantities.WriteOnceReadMany{<:Dict}, i, s::Symbol)
26
haskey(w._raw_data, s) && throw("Unit $s already exists at index $(w[s])")
27
setindex!(w._raw_data, i, s)
28
+ return w
29
end
30
31
Base.iterate(w::WriteOnceReadMany) = iterate(w._raw_data)
0 commit comments