2 ms·
I think both changes (mapM_ and print) are certainly clearer and probably more idiomatic today. Coincidentally, I wrote almost exactly your suggested line of co
by Chris_Newton 11y ago
I think both changes (mapM_ and print) are certainly clearer and probably more idiomatic today. Coincidentally, I wrote almost exactly your suggested line of code only yesterday for another project, but those simplifications didn’t occur to me as I was writing my earlier post, perhaps because I reached the original form via some edits to make all the examples produce equivalent output. I’d love to say I was just trying to be careful about portability in this case, but I’m afraid it was nothing so clever. :-)