You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not implemented. I am working on the sorted containers currently (#787) but this functionality is not part of the current project. As a temporary response to this issue, I have updated the docs of that PR to explicitly mention the missing functionality. Meanwhile, the example below shows how to obtain this functionality efficiently using a loop. The point of this loop, compared to the loop in the original posting, is that semitokens can be dereferenced in O(1) operations whereas keys require O(log n) operations.
julia> s =SortedDict(3=>4)
SortedDict{Int64, Int64, Base.Order.ForwardOrdering} with 1 entry:3=>4
julia>for t inonlysemitokens(s)
s[t] *=2end
julia> s
SortedDict{Int64, Int64, Base.Order.ForwardOrdering} with 1 entry:3=>8
With normal Dict I can
With SortedDict I can't
I can do
but it would be less efficient
thanks
The text was updated successfully, but these errors were encountered: