4

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?

Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169

1 Answers1

1

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.

Shersh
  • 9,019
  • 3
  • 33
  • 61