maybe_equal {maybe}R Documentation

Check if two maybe values are equal

Description

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))
maybe_equal(just(1), just(2))
maybe_equal(nothing(), nothing())

[Package maybe version 1.1.0 Index]