someMethod :: [[a]] -> [Int]
someMethod = map length

There's a list, haskell-beginners better suited for this kind of question.

Alex

On Saturday 10 April 2010 18:02:37 boblettoj wrote:
> Hi i want to know if there is any method i can use to count the number of
> items in each list in a list of lists, eg.
> 
> someMethod [[a, b, c], [a], [b, d, e, f]]
> would return [3, 1, 4]
> 
> is there anything that can do this?
> thanks
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to