heyrutvik commented on issue #1841:
URL: https://github.com/apache/arrow-rs/issues/1841#issuecomment-1178178695

   @tustvold I'm trying to understand the ticket. If I'm not wrong, `Extend` 
will provide us `extend` method and then we can extend an existing builder 
using an iterator.
   
   Example,
   ```
   let ints = [1, 2, 3];
   let mut builder = Int32Builder::new(0);
   builder.extend(ints.into_iter());
   let array = builder.finish();
   assert_eq!(3, array.len());
   ```
   given that we have `impl Extend<i32> for Int32Builder` implemented. 
   
   I'm confused because you mentioned `Extend` and not using any of its method 
in your example snippet. I believe `collect` is the main focus of your example 
which builds collection from an iterator. Could you please elaborate?  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to