I am writing a function that takes in a function and a list as parameters. The parameter function and the list must have the same type of values. How do I ensure that?
I have tried:
(define ( (func -> 'a) [lst : (Typeof 'a)])
....)
However, I have not been able to get it working. I have also gone through the plait tutorial but didn't find anything relevant.
Is it even possible to have a function that accepts a function of a specific return type?