On 2008 Jul 6, at 16:47, Tony Morris wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Feathers wrote:
zip12 ((tails . nub) flightPaths) wayPoints etopsPackets (hd
geoCaches) groundSpeeds headings (map windShift headings)
(regulations !! 2) (foldr (\|/) (tail pathDistances)) [ghy x | x <-
[1..], full x] (nub . nub) arrivalSchedule

Hi Michael,
Sorry to distract from your issue, but I note that (nub . nub) can be
replaced with just 'nub' since the function nub is idempotent (f . f
== f).


Or even better, with a custom nub: in order to handle some special cases the Prelude nub is rather inefficient.

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to