New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VectorBuilder should allow access to current element count #9904
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9904?orig=1 |
@dragos said: |
Mathias Doenitz (sirthias) said: Some code supports collecting elements into a builder up until a defined maximum size. |
@cbilgin said: Can I assign this to myself and take shot it? |
@retronym said: |
@retronym said: Perhaps you can collaborate to look at the questions about whether and how this should be generalized to all Builders. |
scala/scala#5489 was sent for this, and was closed:
|
would someone like to look and see if this is already fixed in strawman or not...? |
It is not yet fixed in strawman (as of now). I can PR it if desired. |
Currently
VectorBuilder
doesn't allow access to the current element count which forces one to keep external counters in all cases where this information is important.The proposal is to add these three methods to the
VectorBuilder
class:The text was updated successfully, but these errors were encountered: