Companion object for Result class that contains its constructor functions success and failure.
Returns an instance that encapsulates the given Throwable as failure.
Returns an instance that encapsulates the given value as successful value.
Thanks for your feedback!