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/09/10 20:04:14 UTC

[GitHub] [arrow-rs] tustvold commented on issue #2696: Implement collect for int values

tustvold commented on issue #2696:
URL: https://github.com/apache/arrow-rs/issues/2696#issuecomment-1242797316

   The following will work
   
   ```
   vec![1, 2, 3].into_iter().collect::<Int32Array>();
   vec![1, 2, 3].iter().copied().collect::<Int32Array>();
   ```
   
   I think this could be extended to support &i32, etc... by defining `From<&i32> for NativeAdapter<i32>`. Is this what you're after, or are the above solutions sufficient?
   


-- 
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