Created
June 8, 2021 15:58
-
-
Save Steboss89/d22759c85c4faedc617061acf3229b00 to your computer and use it in GitHub Desktop.
Read a csv in Rust. First step map out the lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reader.lines().enumerate() | |
| .map(|(numb, line)| line.expect(&format!("Impossible to read line number {}", numb))) | |
| .map(|row| read_single_line(row)) | |
| .collect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment