Reading CSV files in Scala – the Traversable way

I needed to import some comma-separated data in Scala, did a quick search for ready-made CSV code and opted for opencsv, which is a Java library available in the Maven central repository.

It’s easy enough to use, but I wanted to see if I could apply some Scala tricks to make it even simpler and more expressive. Continue reading