is_result {result}R Documentation

Checks if an object is of result class

Description

Checks if an object is of result class

Usage

is_result(obj)

Arguments

obj

object to check

Value

TRUE if object is of result class, FALSE otherwise

Examples

is_result(success())
is_result(failure())
is_result(42)

[Package result version 0.1.0 Index]