Description Usage Arguments Value Examples
Ensure checks that certain preconditions and postconditions of a function are true.
1 | ensure(checker_fn, preconditions = list(), postconditions = list())
|
checker_fn |
function. A function to run with validated pre- and postconditions. |
preconditions |
list. A list of preconditions to check. |
postconditions |
list. A list of postconditions to check. |
The original function, but also of class validated_function, with added validations.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.