Skip to content

findfirst dispatches on ::Function #49085

@jariji

Description

@jariji
findfirst(predicate::Function, A)
findfirst(pattern::AbstractString, string::AbstractString)

This function dispatches on Function to avoid ambiguity with the pattern method, so it is not generic to callable types. This seems like it should be two functions: one that takes a predicate and one that takes a pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codesearch & findThe find* family of functionsspeculativeWhether the change will be implemented is speculative

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions