[Haskell-cafe] Suspected stupid Haskell Question

Peter Verswyvelen bf3 at telenet.be
Wed Oct 17 07:28:03 EDT 2007


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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>   



More information about the Haskell-Cafe mailing list