tuned signature;
authorwenzelm
Sun, 10 Mar 2024 10:37:28 +0100
changeset 79842 ba306bc7d226
parent 79841 64a49c55609f
child 79843 c052a35e6a4f
tuned signature;
src/Pure/library.scala
--- a/src/Pure/library.scala	Sat Mar 09 22:04:07 2024 +0100
+++ b/src/Pure/library.scala	Sun Mar 10 10:37:28 2024 +0100
@@ -292,11 +292,11 @@
 
     val empty: Update = Update()
 
-    def make[A](data0: Data[A], data1: Data[A], kind: Int = 0): Update =
-      if (data0.eq(data1)) empty
+    def make[A](a: Data[A], b: Data[A], kind: Int = 0): Update =
+      if (a eq b) empty
       else {
-        val delete = List.from(for ((x, y) <- data0.iterator if !data1.get(x).contains(y)) yield x)
-        val insert = List.from(for ((x, y) <- data1.iterator if !data0.get(x).contains(y)) yield x)
+        val delete = List.from(for ((x, y) <- a.iterator if !b.get(x).contains(y)) yield x)
+        val insert = List.from(for ((x, y) <- b.iterator if !a.get(x).contains(y)) yield x)
         Update(delete = delete, insert = insert, kind = kind)
       }
   }