[Haskell-cafe] where to put general-purpose utility functions

David Fox ddssff at gmail.com
Tue Jan 24 22:00:24 CET 2012


On Mon, Jan 23, 2012 at 1:01 PM, Joey Hess <joey at kitenet.net> wrote:

>> >   Other stuff:
>> >
>> >   separate :: (a -> Bool) -> [a] -> ([a], [a])
>>
>> Is this partition from Data.List?
>
> No; it's like break but does not include the separating character in the
> snd list.

I like  let (hd, _ : tl) = break prd lst in...



More information about the Haskell-Cafe mailing list