Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> How would you use type annotations to show that `square` accepts a matrix (as well as an int, float, rational number etc.)?

Semi-seriously: by specifying the input type is a Monoid.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: