I have data like that
tab = ({"123" data} {"456" data} ...
(whatever, it is a lazy sequence of hashmaps).
I want to write it into an edn file line by line, so I did this
(map (fn[x] (spit "test.edn" x :append true)) tab)
The problem is that I would like to have this in the file :
{"123" data}
{"456" data}
But it seems to append like that
{"123" data}{"456" data}
Is there a way to solve this ? I guess I have to add "newline" but I don't know how to do it since inputs are not strings.
Thanks !