17 May
2001
17 May
'01
10:36 a.m.
On Thu, 17 May 2001, Bernd [iso-8859-2] Holzm�ller wrote:
This partitioning function builds equivalence classes from the list argument, where each element list within the result list consists of elements that all map to the same value when applying f to it. Thus: partition (`div` 2) [1..5] yields [[1],[2,3],[4,5]]
This is much more general than the existing partitioning function and applicable in many practical cases.
But here generality comes at the expense of speed I think. Greetings :-) Michal Gajda korek@icm.edu.pl