Hacker News new | ask | show | jobs
by maleldil 404 days ago
If I understand correctly, you can do this with overloads. They don't change the function implementation, but you can type different combinations of parameters and return types.