scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

Ensure stability of IArray.tapEach

Open bishabosha opened this issue 1 day ago • 1 comments

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

bishabosha avatar Dec 11 '25 08:12 bishabosha