I'm stuck on this exercise of functional programming in Poly/ML:
Do a function of type ''a list -> int so that it takes a list of ''a elements as argument. The function has to return the number of elements in the list without counting duplicates.
I really have no idea about how to solve it.
Thanks in advance for the help!