![]() |
![]() |
![]() |
![]() |
![]() |
|
Graphically, in the expression 2 raisedTo: 10,
the second number, 10, is packaged with the method selector,
raisedTo:, to form the message sent to the receiver:
Message Receiver
| |
v |
------------ v
raisedTo: 10 *-----*
------------> | |
| 2 |
<------------ | |
1024 *-----*
^
|
Answer
Thus, when you select 2 raisedTo: 10 and click right > Show
It, you see the answer, 1024, displayed, because raisedTo:
indicates that the receiver is to be raised to a power corresponding to the
argument.