Fork me on GitHub
#beginners
<
2015-11-05
>
dexter16:11:28

@roberto: The println thing was for debugging purposes, I actually wanted to spit it to a file, but the result was the same, just a lazyseq symbol once println worked so too did spit

roberto16:11:13

spitting to a file is also a side effect

roberto16:11:24

anything that does IO is a side effect

dexter16:11:18

true but the spit does not need to be part of the map

dexter16:11:42

my final command was actually (spit "/tmp/tst" (apply str (map map-remapping remappings)))

roberto16:11:48

hmm, I’ve never used spit to write to a file. I always prefer to use io/copy

roberto16:11:07

will have to try spit to see whats the difference

roberto16:11:51

also, map is lazy

roberto16:11:00

did you try mapv ?

dexter17:11:27

I did not, however apply str did seem to give me a full material result