Skip to contents

[Stable]

Usage

is_result(x)

Arguments

x

The object to test.

Value

Either TRUE or FALSE.

Examples

Success(10) |> is_result()
#> [1] TRUE
Failure("OOps!") |> is_result()
#> [1] TRUE
Some(10) |> is_result()
#> [1] FALSE
Nothing() |> is_result()
#> [1] FALSE