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
It seems that by now (v0.8), the pop!(ss) method allows to pop the first element in a SortedSet, but apparently there is no equivalent method for SortedDict, where the item with the smallest key would be popped.
What is the most efficitent way to do this at the moment ?
I suggest startof followed by deref followed by delete! If you don't actually need the first item and you are using pop merely to discard it, then delete!((sd, startof(sd))) should suffice.
It would be nice to have these for
OrderedDict
andOrderedSet
. At the moment in Julia 0.7:The text was updated successfully, but these errors were encountered: