[Haskell-cafe] Re[2]: How to get subset of a list?
Huazhi (Hank) Gong
hankgong at nm.gist.ac.kr
Fri Dec 1 07:20:39 EST 2006
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 at gmail.com
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at 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.
More information about the Haskell-Cafe
mailing list