arr = [“6”,“-”,“2”," “,“6=”,”-“,“3”]
lenarr = 7
println(“arr=”,arr,” lenarr=",lenarr)
i = 1
while (((arr[i] == " ") or (arr[i] == “\t”)) and (i < lenarr))
i = i + 1
end
firstindex = i
or
and and
are not keywords in Julia. You need ||
and &&
.
Also, it will be easier to read your code and therefore easier to help you if you quote it by following the instructions at: PSA: how to quote code with backticks
3 Likes