Skip to contents

"Some value" here means a value wrapped in a Some object, as opposed to a Nothing object.

Usage

Some(value = NULL)

Arguments

value

The value that is wrapped by the Some object.

Details

Note R has other means by which an author might represent missing-ness or ambiguity like NULL, NAs and 0-length vectors.

Examples

Some(100)
#> <resultr::Some>
#>  @ value: num 100
Some("Some Text")
#> <resultr::Some>
#>  @ value: chr "Some Text"
Some(1:10)
#> <resultr::Some>
#>  @ value: int [1:10] 1 2 3 4 5 6 7 8 9 10
Some(TRUE)
#> <resultr::Some>
#>  @ value: logi TRUE
Some(FALSE)
#> <resultr::Some>
#>  @ value: logi FALSE