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

cosmetics

This commit is contained in:
kalmar 2017-05-11 18:09:55 +02:00
parent 038ece45c5
commit 34f93e0a6e

View File

@ -229,9 +229,9 @@ function findnext(W::GWord, Z::GWord, i::Integer)
end
end
function replace!(W::GWord, index, toreplace::GWord, replacement::GWord; asserts=true)
function replace!(W::GWord, index, toreplace::GWord, replacement::GWord; check=true)
n = length(toreplace.symbols)
if asserts
if check
@assert is_subsymbol(toreplace.symbols[1], W.symbols[index])
@assert W.symbols[index+1:index+n-2] == toreplace.symbols[2:end-1]
@assert is_subsymbol(toreplace.symbols[end], W.symbols[index+n-1])