Internal source list/array/collection should not be exposed by #list #set or #array methods.
#sort and #reverse method should not have impact on source collections too.
We should implement this using SharedList
Internal source list/array/collection should not be exposed by #list #set or #array methods.
#sort and #reverse method should not have impact on source collections too.
We should implement this using `SharedList`
copy-on-write list is implemented.
methods reviewed:
- `list` returns CopyList or new list.
- `set` returns new set
- `array` returns always new array (cloned)
- `sort` returns new list
- `reverse` returns reversed read-only list.
ranides hivatkozott erre a hibajegyre egy commit-ban ekkor: 4 éve
Internal source list/array/collection should not be exposed by #list #set or #array methods.
#sort and #reverse method should not have impact on source collections too.
We should implement this using
SharedListMoże zamiast zabawy w SharedList powinniśmy po prostu dodać metody: listview() i tyle?
sort - OK
we should implement copy-on-write list/set
copy-on-write list is implemented.
methods reviewed:
listreturns CopyList or new list.setreturns new setarrayreturns always new array (cloned)sortreturns new listreversereturns reversed read-only list.