A couple of relevant prior discussions, in case you’re interested:
rdeits
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to pass in a function as an argument to a function? | 8 | 629 | February 23, 2021 | |
| pass a funtion(with function signature) as an argument | 3 | 6349 | May 1, 2019 | |
| Enforcing function signatures by both argument & return types | 30 | 8566 | December 31, 2021 | |
| Higher-order function argument types | 3 | 3449 | November 28, 2017 | |
| How to annotate anonymous function parameter type | 9 | 1207 | May 31, 2021 |