Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 393 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 393 Bytes

CSV

Parse and write CSV string, based on the grammer of RFC 4180.

import CSV

#eval CSV.parse "a,\"b\nc\"\r\n1,2"
-- Except.ok #[#["a", "b\nc"], #["1", "2"]]

#eval CSV.compress #[#["a\r\n", "b,", "c"], #["1", "2", "3"]]
-- "\"a\x0d\n\",\"b,\",c\x0d\n1,2,3"

Todo

  • Customizable separators and other configs
  • Typed reader
  • Read by row