Success
is_success_and.Rd
is_success_and(x, fn)
The object to test.
A single argument predicate function that accepts x as its argument.
x
Either TRUE or FALSE.
TRUE
FALSE
is_failure_and()
Success(10) |> is_success_and(~ unwrap(.x) == 10) #> [1] TRUE Failure("OOps!") |> is_success_and(~ unwrap(.x) == 10) #> [1] FALSE Some(10) |> is_success_and(~ unwrap(.x) == 10) #> [1] FALSE Nothing() |> is_success_and(~ unwrap(.x) == 10) #> [1] FALSE