Description Usage Arguments Value Examples
View source: R/result_option.R
Create an Option out of an object. By default the object is wrapped in a Some variant.
Ok variants of Result are turned into Some Options, while Err variants are
turned into None Options.
1 | into_option(x, ...)
|
x |
Object to be converted |
... |
Objects passed to methods |
an Enum object of class Option
1 2 | an_error <- Result$Err("hello world!")
into_option(an_error) # None
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.