maybe_flatten {maybe}R Documentation

Flatten a nested maybe value

Description

Flatten a nested maybe value

Usage

maybe_flatten(.m)

join(.m)

Arguments

.m

A maybe value

Value

A maybe value

Examples

just(just(1)) %>% maybe_flatten()
just(nothing()) %>% maybe_flatten()
just(1) %>% maybe_flatten()
nothing() %>% maybe_flatten()

[Package maybe version 1.1.0 Index]