2 ms·
Thanks for the detailed explanation. One more question though, when I write type 'a = 'a :: list 'a It is syntactic sugar that allows me to get the * prod
by cassepipe 5y ago
Thanks for the detailed explanation. One more question though, when I write
type 'a = 'a :: list 'a
It is syntactic sugar that allows me to get the * product type for free, right ?
- dan-robertson 5y agoI think that is made up syntax from the article but maybe I’m wrong.
- yawaramin 5y agoThat's actually invalid syntax. '::' can't be used infix in a type declaration. And type application is in reverse. So it's not list 'a but 'a list.