[Haskell-cafe] How to split this string.

Steve Horne sh006d3592 at blueyonder.co.uk
Thu Jan 5 13:04:34 CET 2012


On 05/01/2012 11:55, Christian Maeder wrote:
> Am 05.01.2012 11:57, schrieb Steve Horne:
> [...]
>> groupCut :: (x -> x -> Bool) -> [x] -> [[x]]
> [...]
>
> How about a break function that respects an escape character (1. arg) 
> (and drops the delimiter - 2. arg) and use this function for unfolding?
Interesting.

I was going to accuse you of cheating - who says there's a spare value 
to use? - but you seem to be using Maybe, so well played.

You're also using unfoldr, which I really must play with a bit - I don't 
really have a feel for how unfolding works ATM.

Thanks.




More information about the Haskell-Cafe mailing list