17 Oct
2007
17 Oct
'07
4:58 p.m.
Nice!!! As I'm learning Arrows now, this is really useful :-) Stuart Cook wrote:
import Control.Arrow import Data.List
freqs = map (head &&& length) . group . sort
I have used this function quite a few times already.
Stuart _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe