If you want to convert data to an IArray, code like the following is currently not possible:
def example = collection.view.map(_ * 2).to(IArray)
currently, you can only use the direct factory methods:
IArray.from(collection)IArray(collection*)
implementation here: Add implicit conversion from IArray.type to Factory by bishabosha · Pull Request #24675 · scala/scala3 · GitHub
question remains if this is good enough, or if we want to also add .toIArray variants wherever .toArray exists. - perhaps this is overkill if in a couple years separationChecking can land with frozen mutability for Array (making IArray redundant)