RosettaCodeData/Task/Search-a-list/Julia/search-a-list.julia
2023-07-01 13:44:08 -04:00

4 lines
233 B
Text

@show findfirst(["no", "?", "yes", "maybe", "yes"], "yes")
@show indexin(["yes"], ["no", "?", "yes", "maybe", "yes"])
@show findin(["no", "?", "yes", "maybe", "yes"], ["yes"])
@show find(["no", "?", "yes", "maybe", "yes"] .== "yes")