[Haskell-cafe] How to get subset of a list?

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Dec 1 07:07:03 EST 2006


Hello Huazhi,

Friday, December 1, 2006, 5:04:10 AM, you wrote:

> However, like I want to choose s[1,3,6,10] or something like this. Are there
> some straightforward function or operator for doing this job? The !!
> operator in haskell seems does not support multiple indecies.

just change your mind, Neo ;)

Hugs> map ("abcdefg" !!) [1,3,6]
"bdg" :: [Char]


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list