AbsaOSS/commons

Iterator.copyToArray alternative that returns a number of copies items

Closed this issue · 0 comments

wajda commented

The standard Scala method Iterator.copyToArray() returns Unit.
It often is useful to know how many items has been actually copied over / read from an iterator, especially when writing a portion into a bigger array.