I am new to Julia why the function is returning value 4:4 what does it means ??
findnext("o", "xylophone", 1)
I am new to Julia why the function is returning value 4:4 what does it means ??
findnext("o", "xylophone", 1)
It means that the first occurrence of query string "o"
after index 1 in "xylophone"
occurs at indexes 4:4
- that is, the indices from 4 up to and including 4:
julia> "xylophone"[4:4]
"o"
also note
julia> findnext('o', "xylophone", 1)
4
This is not a bug β itβs an intentional difference between strings and characters