fix bug in diff method, which would destroy the set
This commit is contained in:
parent
9126879af1
commit
1bf2dadcb8
1 changed files with 1 additions and 1 deletions
|
|
@ -257,7 +257,7 @@ def elements
|
|||
end
|
||||
|
||||
elements = []
|
||||
edges = @set["edges"]
|
||||
edges = @set["edges"].dup
|
||||
while (edges.length>0)
|
||||
lower, upper = edges.slice!(0..1)
|
||||
elements += (lower+1 .. upper).to_a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue