How to impress the locals...

Juan Vuletich jmvsqueak at uolsinectis.com.ar
Tue Jul 19 14:07:35 UTC 2005


I always write inject: xx into: [ :previousValue :each | ... ]

>>     max := s allButFirst inject: s first into: [:r :i | r max: i]
> ...
> For readability, I'd name the second block argument "each". No good  
> idea for the first argument, though. "prev" might work.




More information about the Squeak-dev mailing list