Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
33525
Description
Functor Enhancement: Parent interface for all functors
I would like to see an empty Functor interface as a marker for all functors.
This would be useful for storing functors in typed Maps, providing functor
metadata lookup (e.g. parameters and return types), and passing functors
generically as method parameters. It's an easy enhancement to make, and
potentially very powerful.
public interface Functor {}
public interface Predicate extends Functor
public interface UnaryPredicate extends Functor
public interface BinaryPredicate extends Functor
public interface Function extends Functor
public interface UnaryFunction extends Functor
public interface BinaryFunction extends Functor
public interface Procedure extends Functor
public interface UnaryProcedure extends Functor
public interface BinaryProcedure extends Functor