
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] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH