Closed tlinkowski closed 7 years ago
OK this depends on SeqBuffer
. I'll look at that first: https://github.com/jOOQ/jOOL/issues/305
Hmm, I think you haven't sent a PR for these changes yet. Would you mind doing so, so you can get credit?
Sure!
Hm, I just realized that I implemented it inside [#305] (in the squashed commit 61e75370). Unfortunately, I forgot to add "[#308] more efficient Seq.splitAt implementation" to the commit message.
Oh yes indeed, thanks very much. The test also runs. I've activated it again.
Iterating
Seq.of(1, 2, 3, 4, 5, 6).splitAt(2).v1()
requires consumption of entireSeq
, and not only consumption of the first 2 elements (i.e. until givenposition
is reached).I propose the following implementation using
SeqBuffer
proposed in #305: