These are chat archives for nrinaudo/kantan.csv

16th
Oct 2016
Nicolas Rinaudo
@nrinaudo
Oct 16 2016 16:34
@aroberts is there any chance you can share a bit of the code that you wrote to work around #54, to check if the fix I have brewing actually addresses the issue?
in hindsight, I think all you needed was DecodeResult.apply, but it des not make your point any less valid
Nicolas Rinaudo
@nrinaudo
Oct 16 2016 19:24
I think your use case actually deserves a dedicated helper. Would something like this solve your problem:
val formats: List[CellDecoder[Date]] = ???
val decoder: CellDecoder[Date] = CellDecoder.oneOf(formats)
where decoder would return the first success or, if not is found, the last failure