Jump to content

Category:Smalltalk: Difference between revisions

Line 138:
 
(a + 1) squared "send '+' to a, then send 'squared' to whatever we get from it"
 
a , b "send the (binary) ',' message, which does collection-concatenation (arrays, strings, etc)
 
arr at:1 put:'foo' "send the 'at:put:' message to 'arr', passing two arguments, the integer '1' and a string"
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.