4 ms·
Lots of ways to do it, wouldn't have to be linear time. >for you to expect this Oh, no, I wouldn't expect it to enforce a rule like that by default, but it wo
by Dylan16807 12y ago
Lots of ways to do it, wouldn't have to be linear time.
>for you to expect this
Oh, no, I wouldn't expect it to enforce a rule like that by default, but it would be a good thing to do when the behavior is so unpredictable.
>sharing the part you've already written and appending after that
You could require an immutable slice for that, in the situations where append is the most reasonable option.
Anyway I'm not trying to suggest this method. I'm just giving an example to support the idea that it could do something predictable.