expose findfirst(pattern::AbstractVector{T}, A::AbstractVector{T}) where {T<:Union{Int8,UInt8}} #37280
Labels
good first issue
Indicates a good issue for first-time contributors to Julia
search & find
The find* family of functions
We already have a function
_searchindex
to search for subsequences of byte arrays. It would be nice to expose this by adding corresponding methods tofindfirst
andfindnext
.Although the current
_seardhindex
implementation only acceptsVector
arguments, it looks like the implementation doesn't depend on the storage format, so the function signature could be easily widened toAbstractVector{<:Union{Int8,UInt8}}
arguments. (You'll need to replace thesizeof
calls withlength
, and maybe usefirstindex
to support non 1-based indexing.)(See also the discussion on discourse.)
The text was updated successfully, but these errors were encountered: