You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/07 20:19:37 UTC

[GitHub] [arrow-rs] heyrutvik commented on issue #1841: Implement Extend for Builder

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org