, if we take the test as an example the only way I've been able to do so is to do
n1.connectedStrings.toMutableList().add(x)
. Am I going way off base here?
t
tapac
08/11/2017, 9:36 PM
It wont work, because call of toMutableList() will create new copy of elements from SizedIterable and then you add element to copy which unlinked from dao.
Thank you! This helps, I'm much more familiar with immutable operations, however, I wasn't sure what the underlying SQL were going to be e.g. delete all rows and re-add them vs. only add the ones that didn't already exist.