jorgecarleitao commented on issue #598:
URL: https://github.com/apache/arrow-rs/issues/598#issuecomment-897046153


   I am probably missing something. The below does not compile:
   
   ```rust
   let array: StringArray = [Some("foo"), None, Some("bar")]
           .iter()
           .collect();
   ```
   
   isn't it enough to use `.map(|x| x.as_ref())`:
   
   ```rust
   let array: StringArray = [Some("foo"), None, Some("bar")]
           .iter()
           .map(|x| x.as_ref())
           .collect();
   ```
   
   it is 20 more characters, but it does not seem _that_ bad?
   


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