into_result {matchr} | R Documentation |
Create a Result
out of an object. By default the object is wrapped in an Ok
variant.
Some
variants of Option
are turned into Ok
Results, while None
variants are
turned into Err
Results
into_result(x, ...)
x |
Object to be converted |
... |
Objects passed to methods |
an Enum object of class Result
nothing <- Option$None
into_result(nothing) # Err