There is no need to nest this function on a Kind F...
# arrow
r
There is no need to nest this function on a Kind F.
Copy code
suspend fun String.parseDate(): Either<DateParseError, Date> =
  Either.catch({ e -> DateParseError(e) }) {
     dateFromString(this)
  }
j
This looks more concise! Currently using 0.9.0, but will try this out using the snapshot.