Add another 'make_fn' utility function

Merged Nicolas Michon requested to merge dev/make_fn into master

Merge request reports