Converting a Mutable Array to an Immutable Array in Effect Typescript

Is there a better way to go from a mutable array to immutable array this is what I have right now

https://effect.website/play#07aa710c8dae (I need to handle each encode/decode for individual items w/ non sync versions but this demos the idea)
Was this page helpful?