3 ms·
The Smalltalk version of foreach() is called #do:. #inject: is like reduce(). That blog post inspired a fun discussion in the Smalltalk community on what the s
by cwp 12y ago
The Smalltalk version of foreach() is called #do:. #inject: is like reduce().
That blog post inspired a fun discussion in the Smalltalk community on what the semantics of #infect: and #neglect: should be!