Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

String Indexing - Alright, what am I missing?

$
0
0

Quite new to Julia and am coming from a VBA background mostly Given that I am curious as to why in this code ‘h’ starts on the second letter of the string while ‘v’ starts with the first

s1 = “ACGTACT”
s2 = “ACTACGT”

for h in eachindex(s1), v in eachindex(s2)
if s1[h] == s2[v]
intCellFactor = 1
elseif s1[h] != s2[v]
intCellFactor = 0
end
end

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles