2009/3/24 Jonathan Cast <[email protected]>:
> On Tue, 2009-03-24 at 22:33 +0300, Eugene Kirpichov wrote:
>> Pretty cool once you know what the function does, but I must admit I
>> wouldn't immediately guess the purpose of the function when written in
>> this way.
>
> I wouldn't immediately guess the purpose of the function written in any
> way.
>
> I think, in general, the best way to document the purpose of the
> function is
>
>    -- | Split a function into a sequence of partitions of specified
> lenth
>    takeList :: [Int] -> [a] -> [[a]]

Thank-you Jonathan.

That's the first message in this thread I've manage to understand.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to