#contravariance

[ follow ]
fromQuansight
1 week ago

Escaping Contravariance Hell

If you want a vegetable and I give you a carrot, you'll be happy. If you want a function which works on all vegetables and I give you a function which only works on carrots, you'll be disappointed.
Python
[ Load more ]