powered by
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.
Option
Some
Ok
Result
Err
None
into_option(x, ...)
Object to be converted
Objects passed to methods
an Enum object of class Option
# NOT RUN { an_error <- Result$Err("hello world!") into_option(an_error) # None # }
Run the code above in your browser using DataLab