
5 Jan
2012
5 Jan
'12
7:04 a.m.
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.