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
I like how Base.sort has sort! for in-place methods but also has a scratch keyword for the scratch space that some sorts like radix sort needs. Graphs could do something like that.
│ • Base.Sort.make_scratch
make_scratch(scratch::Union{Nothing, Vector}, T::Type, len::Integer)
Returns (s, t) where t is an AbstractVector of type T with length at least len that is backed by the Vector s. If scratch !==nothing, then s === scratch.
This function will allocate a new vector if scratch ===nothing, resize! scratch if it is too short, and reinterpret scratch if its
eltype is not T.
See the discussion in #407
The text was updated successfully, but these errors were encountered: