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
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to