Result Type for Safely Handling Operations that can Succeed or Fail


[Up] [Top]

Documentation for package ‘result’ version 0.1.0

Help Pages

as_result Wraps an expression in 'result' type, choosing between 'success' and 'failure' based on the outcome of the expression.
bind Binds a result with another result or function to return a result
failure Wraps a value in 'failure' type of 'result'
is_failure Checks if an object is of 'failure' class
is_result Checks if an object is of 'result' class
is_success Checks if an object is of 'success' class
result Wraps a function in an 'result' monad for later evaluation.
status Extracts the status of a 'result'
success Wraps a value in 'success' type of 'result'
then_try Binds a result with another result or function to return a result
value Extracts the value of a 'result'