1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +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) if idx + n - 1 > length(W.symbols)
break break
end end
first = is_subsymbol(Z.symbols[1],a) foundfirst = is_subsymbol(Z.symbols[1],a)
if first if foundfirst
middle = W.symbols[idx+1:idx+n-2] == Z.symbols[2:end-1] middlematch = W.symbols[idx+1:idx+n-2] == Z.symbols[2:end-1]
last = is_subsymbol(Z.symbols[end], W.symbols[idx+n-1]) lastmatch = is_subsymbol(Z.symbols[end], W.symbols[idx+n-1])
if middle && last if middlematch && lastmatch
return idx return idx
end end
end end