
23 Mar
2007
23 Mar
'07
7:38 a.m.
Hi
I don't know how to add it into the one liner though - although I suspect someone here will :)
head . head . filter (\(x:y:_) -> abs (x-y) < 0.1)
Doesn't work, I assume you meant (and typo'd): head . head . filter (\(x:y:_) -> abs (x-y) < 0.1) . tails Which does work fine. Thanks Neil