Closed nathansobo closed 10 years ago
This is a bit subtle, but splice is not available as a mutative method. It always returns a sequence. Because splice needs to push the indices of the elements after it, it always needs to create a new vector.
I agree that this behavior isn't super obvious though. I think the code you wrote should have done what you expected. Unfortunately right now it doesn't. The answer is to (outside of withMutations) do vect.splice(...).toVector()
This behavior is also made clearer by RRB, so now tracking this in #38
Should the following code example log
true
? On 2.0.4 it's loggingfalse
for me. Am I doing something wrong?