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
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to