NimbleCSV is good for that.
alias NimbleCSV.RFC4180, as: CSV
File.read!("data/myfile.csv")
|> CSV.parse_string()
|> Enum.map(fn [a, b, c] -> %{a: a, b: b, c: c} end)
NimbleCSV is good for that.
alias NimbleCSV.RFC4180, as: CSV
File.read!("data/myfile.csv")
|> CSV.parse_string()
|> Enum.map(fn [a, b, c] -> %{a: a, b: b, c: c} end)