@@ -49,6 +49,78 @@ that carries it.
4949 KIND_BISECT_THEN_SIMD
5050end
5151
52+ # Julia 1.10's `@enum` does not accept inline docstrings for individual
53+ # values, so keep per-kind docs immediately next to the enum definition.
54+ @doc """
55+ KIND_BINARY_BRACKET::StrategyKind
56+
57+ Select [`BinaryBracket`](@ref FindFirstFunctions.BinaryBracket), the plain
58+ binary-search fallback for positional sorted searches.
59+ """ KIND_BINARY_BRACKET
60+
61+ @doc """
62+ KIND_LINEAR_SCAN::StrategyKind
63+
64+ Select [`LinearScan`](@ref FindFirstFunctions.LinearScan), the hinted
65+ strategy that walks linearly from a nearby index.
66+ """ KIND_LINEAR_SCAN
67+
68+ @doc """
69+ KIND_SIMD_LINEAR_SCAN::StrategyKind
70+
71+ Select [`SIMDLinearScan`](@ref FindFirstFunctions.SIMDLinearScan), the
72+ hinted linear scan with SIMD-specialized forward walks for supported dense
73+ vectors.
74+ """ KIND_SIMD_LINEAR_SCAN
75+
76+ @doc """
77+ KIND_BRACKET_GALLOP::StrategyKind
78+
79+ Select [`BracketGallop`](@ref FindFirstFunctions.BracketGallop), the hinted
80+ strategy that expands a bidirectional exponential bracket before binary
81+ searching inside it.
82+ """ KIND_BRACKET_GALLOP
83+
84+ @doc """
85+ KIND_EXP_FROM_LEFT::StrategyKind
86+
87+ Select [`ExpFromLeft`](@ref FindFirstFunctions.ExpFromLeft), the hinted
88+ strategy that treats the hint as a left bound and searches forward
89+ exponentially.
90+ """ KIND_EXP_FROM_LEFT
91+
92+ @doc """
93+ KIND_INTERPOLATION_SEARCH::StrategyKind
94+
95+ Select [`InterpolationSearch`](@ref FindFirstFunctions.InterpolationSearch),
96+ the strategy that guesses from linear extrapolation across the vector
97+ endpoints.
98+ """ KIND_INTERPOLATION_SEARCH
99+
100+ @doc """
101+ KIND_BIT_INTERPOLATION_SEARCH::StrategyKind
102+
103+ Select
104+ [`BitInterpolationSearch`](@ref FindFirstFunctions.BitInterpolationSearch),
105+ the opt-in interpolation strategy that guesses from Float64 bit patterns.
106+ """ KIND_BIT_INTERPOLATION_SEARCH
107+
108+ @doc """
109+ KIND_UNIFORM_STEP::StrategyKind
110+
111+ Select [`UniformStep`](@ref FindFirstFunctions.UniformStep), the direct
112+ arithmetic lookup strategy for uniformly-spaced vectors and ranges.
113+ """ KIND_UNIFORM_STEP
114+
115+ @doc """
116+ KIND_BISECT_THEN_SIMD::StrategyKind
117+
118+ Select [`BisectThenSIMD`](@ref FindFirstFunctions.BisectThenSIMD), the
119+ sorted-equality strategy used by [`findequal`](@ref FindFirstFunctions.findequal).
120+ The positional sorted-search dispatch falls back to
121+ [`BinaryBracket`](@ref FindFirstFunctions.BinaryBracket).
122+ """ KIND_BISECT_THEN_SIMD
123+
52124"""
53125 searchsorted_last(kind::StrategyKind, v, x[, hint]; order = Base.Order.Forward)
54126 searchsorted_last(s, v, x[, hint]; order = Base.Order.Forward)
0 commit comments