Handling Immutable Arrays with Data.array in Effect Typescript
i have an immutable array with
Then I perform some actions, like
The returned data is just a ordinary array, not the readonly one with Data array.
So I have to wrap the returned value with
This is cumbersome. Is there a better way?
Data.array([...])Then I perform some actions, like
Array.sort(arr, Order.number)The returned data is just a ordinary array, not the readonly one with Data array.
So I have to wrap the returned value with
Data.arrayThis is cumbersome. Is there a better way?
