RosettaCodeData/Task/Search-a-list/Julia/search-a-list.julia
2018-06-22 20:57:24 +00: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")