493 B
493 B
Hints
1. Define the with_retry function
- A
caseexpression can be used to pattern match on a result.
2. Define the record_timing function
- The
time_loggerfunction should be called even if theexperimentfunction returns anErrorvalue.
3. Define the run_experiment function
- The
result.tryfunction can be used in auseexpression to stop if a result is anErrorvalue.