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

Taral taralx at gmail.com
Thu Nov 30 21:08:18 EST 2006


On 11/30/06, Huazhi (Hank) Gong <hankgong at nm.gist.ac.kr> wrote:
> Thanks, it make sense here.
> 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.

If you're trying to do random access on a list, you should rethink why
you're using a list.

-- 
Taral <taralx at gmail.com>
"You can't prove anything."
    -- Gödel's Incompetence Theorem


More information about the Haskell-Cafe mailing list