-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
search & findThe find* family of functionsThe find* family of functions
Description
RangeStepStyle is defined here:
https://github.com/JuliaLang/julia/blob/master/base/traits.jl#L55
Presumably, the implication of this is that searchsorted on a RangeStepRegular Range should be constant-time: just subtract the start, divide by the step, and round it (of course, handling all the edge-cases)? Is this something that could/should be implemented somewhere central? If so, I can't really work out how to write a method that dispatches specifically on Ranges that implement RangeStepRegular.
Metadata
Metadata
Assignees
Labels
search & findThe find* family of functionsThe find* family of functions