clarified order: accumulate strictly from left to right;
authorwenzelm
Tue, 13 Dec 2022 11:25:26 +0100
changeset 76633 95c258c0753c
parent 76632 2447d947d900
child 76634 76ee2762c69e
clarified order: accumulate strictly from left to right;
src/Pure/Thy/sessions.scala
--- a/src/Pure/Thy/sessions.scala	Tue Dec 13 11:18:27 2022 +0100
+++ b/src/Pure/Thy/sessions.scala	Tue Dec 13 11:25:26 2022 +0100
@@ -1176,8 +1176,8 @@
         case None =>
           seen_roots += (root.key -> (root, next_root))
           next_root += 1
-        case Some((root1, next1)) =>
-          seen_roots += (root.key -> (root || root1, next1))
+        case Some((root0, next0)) =>
+          seen_roots += (root0.key -> (root0 || root, next0))
       }
     }
     seen_roots.valuesIterator.toList.sortBy(_._2).map(_._1)