1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-24 18:05:27 +01:00

rename variables to less confusing names

This commit is contained in:
kalmar 2017-05-18 12:21:31 +02:00
parent 3776e947a3
commit 64d5466aa7

View File

@ -272,11 +272,11 @@ function findfirst(W::GWord, Z::GWord)
if idx + n - 1 > length(W.symbols)
break
end
first = is_subsymbol(Z.symbols[1],a)
if first
middle = W.symbols[idx+1:idx+n-2] == Z.symbols[2:end-1]
last = is_subsymbol(Z.symbols[end], W.symbols[idx+n-1])
if middle && last
foundfirst = is_subsymbol(Z.symbols[1],a)
if foundfirst
middlematch = W.symbols[idx+1:idx+n-2] == Z.symbols[2:end-1]
lastmatch = is_subsymbol(Z.symbols[end], W.symbols[idx+n-1])
if middlematch && lastmatch
return idx
end
end