Decodes a CSV row as a value of type A.
Decodes a CSV row as a value of type A.
For example:
scala> Seq("1", "2", "3").decodeCsv[(Int, Int, Int)] res0: kantan.csv.DecodeResult[(Int, Int, Int)] = Success((1,2,3))
Decodes a CSV row as a value of type A.
Decodes a CSV row as a value of type A.
For example:
scala> Seq("1", "2", "3").unsafeDecodeCsv[(Int, Int, Int)] res0: (Int, Int, Int) = (1,2,3)
Note that this method is unsafe and will throw an exception if the row's value is not a valid A. Prefer
decodeCsv whenever possible.
Provides syntax for decoding CSV rows as values.
Importing
kantan.csv.ops._will add the following methods toSeq[String]: