functor

Automated composition of function handles

You are now following this Submission

Functor is an annotated function (i.e. a function_handle with named input and output arguments). Collections of functors can be automatically composed into new functors, using functor.compose and/or functor.combine

I sometimes find this useful for refactoring, debugging and design of larger programs. Trace through functor.unitTests to see what is going on.

Cite As

Peter Cotton (2026). functor (https://in.mathworks.com/matlabcentral/fileexchange/27262-functor), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Automated composition of function handles

Inspired: intent.m

Categories

Find more on Biological and Health Sciences in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0