Skip to contents

If both values are 'Nothing' variants or both values are 'Just' variants with identical contents TRUE will be returned, otherwise FALSE.

Usage

maybe_equal(.m1, .m2)

Arguments

.m1

A maybe value

.m2

A maybe value

Value

TRUE or FALSE

Examples

maybe_equal(just(1), just(1))
#> [1] TRUE
maybe_equal(just(1), just(2))
#> [1] FALSE
maybe_equal(nothing(), nothing())
#> [1] TRUE