success
Creates a Success with a true value.
Return
A Success instance containing true.
Creates a Success with the specified value.
Return
A Success instance containing the value.
Parameters
value
The value to wrap in a Success.
Executes the block and wraps the result in a Success.
Return
Parameters
block
The function to execute.