isSuccess

Returns true if this Outcome is a Success.


infix inline fun <Ok, Error> Outcome<Ok, Error>.isSuccess(predicate: (Ok) -> Boolean): Boolean

Returns true if this is a Success and predicate returns true for the value.

Returns false if this is a Failure, or if predicate returns false.