Fledex.Utils.Guards (fledex v0.5.0)

View Source

This module collects all useful guards. If you want to use one of them you need to import this module.

Summary

Guards

This guard checks whether the value is within the given range. Notes

Guards

is_in_range(value, inverse_bounds, min, max)

(macro)

This guard checks whether the value is within the given range. Notes:

* The lower bound is excluded (except if `inverse_bounds` is true)
* The upper bound is included (except if `inverse_bounds` is true)
* This guard is not fully tested, so be careful when using that it works for you.