Closed samuelchassot closed 2 months ago
An inline version of the flatMap function works well, but only with Dotty, not scalac.
flatMap
inline def flatMap[U](inline f: T => Try[U]): Try[U] = this match { case Success(t) => f(t) case Failure(exc: Exception) => Failure(exc) }
An inline version of the
flatMap
function works well, but only with Dotty, not scalac.