1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 06:30:29 +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)
while i 0
replace!(W,i,toreplace, replacement)
i = findnext(W, toreplace, i-1)
i = findnext(W, toreplace, i)
end
end
return W