[clean-list] Can anyone improve this program?

Jigang Sun js035288 at student.paisley.ac.uk
Sun Jul 10 01:33:21 MEST 2005


Hi Nick,

Thank you for your email. 

What I want to do is to get the occurences of a element in a list, e.g. [5,6,5,7,5,6] => [(5,3),(6,2)(7,1)], without using a extra parameter like n in (count n list).

I prefer
Start = count [5,6,5,7,5,6]
than

Start = count n [5,6,5,7,5,6]

How do you think about the next generation language, FP or OOP?

Thank again.

Jigang







More information about the clean-list mailing list