Help - Glossary - Y - yourself

The implementation of yourself is

yourself
^yourself

It is used in contexts like

| oc |
oc := OrderedCollection new.
oc add: 'one'.
oc add: 'two'.

If one does Cmd-p on the above Squeak returns 'two'. If one adds yourself as in

| oc |
oc := OrderedCollection new.
oc add: 'one'.
oc add: 'two'.
yourself

the receiver oc is returned. It is mostly used in cascades.

Glossary - Y