[Haskell-cafe] Length of lists within list of lists?

boblettoj boblettoj99 at msn.com
Sat Apr 10 13:02:37 EDT 2010


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

-- 
View this message in context: http://old.nabble.com/Length-of-lists-within-list-of-lists--tp28203363p28203363.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list