Decodes a CSV cell as a value of type A.
Decodes a CSV cell as a value of type A.
scala> "1".decodeCsv[Option[Int]] res0: kantan.csv.DecodeResult[Option[Int]] = Right(Some(1))
Decodes a CSV cell as a value of type A.
Decodes a CSV cell as a value of type A.
scala> "1".unsafeDecodeCsv[Option[Int]] res0: Option[Int] = Some(1)
Note that this method is unsafe and will throw an exception if the cell's value is not a valid A. Prefer
decodeCsv whenever possible.
Provides syntax for decoding CSV cells as values.
Importing
kantan.csv.ops._will add the following methods toString: