from_just: Unwraps a 'Just' value

View source: R/maybe.R

from_justR Documentation

Unwraps a 'Just' value

Description

Unwraps the content of a 'Just' maybe value.

Usage

from_just(x)

Arguments

x

a maybe value (defined in the maybe package)

Value

If x is a 'Just' maybe value, then the function unwraps the value. Otherwise, an error is thrown.

Examples

library(maybe)
from_just(just(9))

stla/mapR documentation built on April 16, 2022, 11:54 p.m.