``` fun validateExpiryDate(date: LocalDate): Valid...
# arrow
r
Copy code
fun validateExpiryDate(date: LocalDate): ValidatedNel<ValidationError, LocalDate> =
  if (logic) date.validNel() else Expired.invalidNel()
s
Ok so the core here is that you just return the same value if it's valid.
So I could do Try<LocalDate> not withstanding the fact that you prefer Validated to Try