On Jan 31, 2007, at 6:10 , Dougal Stanton wrote:

Quoth Bill Wood, nevermore,
foldl (\water dish -> wash water dish) soapywater dishes :: [Dishes]
Finally, that doesn't work so well when there are constraints on the
order that the dishes are washed, for example when washing the cruddiest
dishes first while there are more suds.

Alas, that still doesn't capture the notion of soapywater degenerating
into murkywater.

Only because the definition of wash hasn't been provided; obviously, it returns a new value of water which is less soapy than the initializer soapywater. :)

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



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to