4 ms·
I'll give the 'why' rather than the 'what'. In most mainstream languages you take a List<Int> and substitute for List<X> without changing the implementation of
by mrkeen 7y ago
I'll give the 'why' rather than the 'what'.
In most mainstream languages you take a List<Int> and substitute for List<X> without changing the implementation of List.
But there's another substitution you could have made, which is L<Int>. HKT allows you to parametrise L over Int, in the same way you were able to parametrise List over Int.
- icedchai 7y agoThanks for the practical, plain English definition. As someone many years out of school, it is appreciated.