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 | 628 | February 23, 2021 | |
| pass a funtion(with function signature) as an argument | 3 | 6344 | May 1, 2019 | |
| Enforcing function signatures by both argument & return types | 30 | 8555 | December 31, 2021 | |
| Higher-order function argument types | 3 | 3447 | November 28, 2017 | |
| How to annotate anonymous function parameter type | 9 | 1203 | May 31, 2021 |