scala3
scala3 copied to clipboard
Ensure stability of IArray.tapEach
previously in source it called arr.toSeq.forEach, relying on a potential flaky implicit conversion to scala.collection.immutable.ArraySeq and then a no-op .toSeq on top of that.
make the conversion explicit, so that it never uses Predef.genericWrapArray, which would copy when calling .toSeq