1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +01:00

arrays in julia start at 1

This commit is contained in:
kalmar 2017-01-26 12:51:48 +01:00
parent 986dc7748f
commit c2e1fa55f3

View File

@ -232,7 +232,7 @@ function replace_all!{T}(W::GWord{T}, subst_dict::Dict{GWord{T}, GWord{T}})
i = findfirst(W, toreplace) i = findfirst(W, toreplace)
while i 0 while i 0
replace!(W,i,toreplace, replacement) replace!(W,i,toreplace, replacement)
i = findnext(W, toreplace, i-1) i = findnext(W, toreplace, i)
end end
end end
return W return W