
Good. I personally perfer this solution... Bulat Ziganshin-2 wrote:
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@gmail.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- View this message in context: http://www.nabble.com/How-to-get-subset-of-a-list--tf2735647.html#a7637491 Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.