Commit 182c282
authored
Ensure stability of IArray.tapEach (#24727)
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`1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
0 commit comments