Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
feanaro
on Oct 6, 2020
|
parent
|
context
|
favorite
| on:
Python 3.9
> 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:
Semi-seriously: by specifying the input type is a Monoid.