but concat should work!
This commit is contained in:
parent
1965db2609
commit
acbaf67b65
1 changed files with 9 additions and 9 deletions
|
|
@ -309,8 +309,8 @@ def union(set_spec)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
iA < eA.length and (! inB) and eS += eA[iA..eA.length]
|
iA < eA.length and (! inB) and eS.concat(eA[iA..eA.length])
|
||||||
iB < eB.length and (! inA) and eS += eB[iB..eB.length]
|
iB < eB.length and (! inA) and eS.concat(eB[iB..eB.length])
|
||||||
|
|
||||||
s.set_pos_inf(@set["posInf"] || b.pos_inf)
|
s.set_pos_inf(@set["posInf"] || b.pos_inf)
|
||||||
s.set_edges(eS)
|
s.set_edges(eS)
|
||||||
|
|
@ -355,8 +355,8 @@ def intersect(set_spec)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
iA < eA.length and inB and eS += eA[iA..eA.length]
|
iA < eA.length and inB and eS.concat(eA[iA..eA.length])
|
||||||
iB < eB.length and inA and eS += eB[iB..eB.length]
|
iB < eB.length and inA and eS.concat(eB[iB..eB.length])
|
||||||
|
|
||||||
s.set_neg_inf(@set["posInf"] && b.pos_inf)
|
s.set_neg_inf(@set["posInf"] && b.pos_inf)
|
||||||
s.set_edges(eS)
|
s.set_edges(eS)
|
||||||
|
|
@ -400,8 +400,8 @@ def diff (set_spec)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
iA < eA.length and not inB and eS += eA[iA..eA.length]
|
iA < eA.length and not inB and eS.concat(eA[iA..eA.length])
|
||||||
iB < eB.length and inA and eS += eB[iB..eB.length]
|
iB < eB.length and inA and eS.concat(eB[iB..eB.length])
|
||||||
|
|
||||||
s.set_edges(eS)
|
s.set_edges(eS)
|
||||||
|
|
||||||
|
|
@ -438,8 +438,8 @@ def xor(set_spec)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
iA < eA.length and eS += eA[iA..eA.length]
|
iA < eA.length and eS.concat(eA[iA..eA.length])
|
||||||
iB < eB.length and eS += eB[iB..eB.length]
|
iB < eB.length and eS.concat(eB[iB..eB.length])
|
||||||
|
|
||||||
s.set_pos_inf(@set["posInf"] ^ b.pos_inf)
|
s.set_pos_inf(@set["posInf"] ^ b.pos_inf)
|
||||||
s.set_edges(eS)
|
s.set_edges(eS)
|
||||||
|
|
@ -637,7 +637,7 @@ def insert(n)
|
||||||
upper = edge[i...edge.length]
|
upper = edge[i...edge.length]
|
||||||
edge = lower
|
edge = lower
|
||||||
edge.push(n-1, n)
|
edge.push(n-1, n)
|
||||||
edge += upper
|
edge.concat(upper)
|
||||||
elsif (not lGap and rGap)
|
elsif (not lGap and rGap)
|
||||||
edge[i-1] += 1
|
edge[i-1] += 1
|
||||||
elsif ( lGap and not rGap)
|
elsif ( lGap and not rGap)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue