[Haskell-cafe] Lists of Lists

Ketil Malde ketil.malde at bccs.uib.no
Wed Mar 8 06:56:40 EST 2006


zell_ffhut <zell_ffhut at hotmail.com> writes:

> Just wondering if anyone can help me with a Haskell problem im having.

> How would I get the value of, lets say, the 9th object in ["4179355","
> 567412"] ?

You mean the ninth character in the concatenation of the list of
strings?  Concatenate the strings, and select the ninth character?

Use 'concat' '!!', and probably '.' and '9' as well.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list