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:
parent
986dc7748f
commit
c2e1fa55f3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user