Skip to content

Instantly share code, notes, and snippets.

View romulo-martins's full-sized avatar
🏠
Working from home

Romulo romulo-martins

🏠
Working from home
View GitHub Profile
@romulo-martins
romulo-martins / csv_to_edn_conversor.clj
Last active June 12, 2023 12:26
Converts from CSV to EDN file
(require '[clojure.data.csv :as csv]
'[clojure.java.io :as io]
'[clojure.string :as str])
(def in-filename "input-filename.csv")
(def out-filename "output-filename.edn")
(let [csv-data (with-open [reader (io/reader (io/resource in-filename))]
(doall
(csv/read-csv reader)))