When using hedgehog-fn is it possible to create function generators that generate functions meeting a specific criteria?
For example: would it be possible to have a function generator that only generates bijective functions?
When using hedgehog-fn is it possible to create function generators that generate functions meeting a specific criteria?
For example: would it be possible to have a function generator that only generates bijective functions?
Generating random functions is a hard task still.
hedgehog-fn
can't do much at the moment, see this issue:From my experience, if you need to test against specific functions, it's better to define several functions manually and then choose one randomly.