modes of a list?

View: New views
1 Messages — Rating Filter:   Alert me  

modes of a list?

by courses.cs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all, Anybody knows how to implement this function in SML? fun modes list = ….. it should be used like this: modes [1,1,2,2,2,3,3,4,5,5,5] which should produce [2,5] Thanks;