Skip to content

In praise of ->

2 messages · Liaw, Andy, Murray Jorgensen

#
You can do this just as easily in two ways:

1. IforgotThis <- .Last.value   [This always works, even if command editing
is not available.]

2. If command line editing is available, hit [up-arrow], [home] (or ctrl-a)
then type IforgotThis = ...
This is also easily accomodated w/o the use of ->:  Instead of 

MyValue -> fred
[code that follows]

use:

fred <-
MyValue
[code that follows]

Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}
#
Liaw, Andy wrote:
> This is also easily accomodated w/o the use of ->:  Instead of
 >
 > MyValue -> fred
 > [code that follows]
 >
 > use:
 >
 > fred <-
 > MyValue
 > [code that follows]
 >
 > Andy

The point is that

-> fred
[code that follows]

is sitting as one piece in the clipboard. So instead of

3 <paste>
8 <paste>
etc

you need to do

fred -> 3 <paste>
fred -> 8 <paste>
etc

Not a big saving, but some of us are lazy!