An object to represent "some value".
Some.Rd
"Some value" here means a value wrapped in a Some
object, as opposed to a
Nothing
object.
Details
Note R has other means by which an author might represent missing-ness or
ambiguity like NULL
, NA
s 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