Tip of the day
klacke@REDACTED
klacke@REDACTED
Sun Aug 15 23:24:42 CEST 2004
On Sat, Aug 14, 2004 at 05:28:13PM -0400, Vance Shipley wrote:
> Tip for Saturday August 14th:
>
> Have you ever forgot to store the return value of a function
> while working in the shell and had to run it again?
>
> 1> (user@REDACTED)1> foo:start().
> {ok,<0.48.0>}
>
> Oops! No need to start another process:
>
> 2> {ok, Pid} = v(1).
> {ok,<0.48.0>}
I use v(-1) all the time .....
/klacke
--
Claes Wikstrom -- Caps lock is nowhere and
http://www.hyber.org -- everything is under control
More information about the erlang-questions
mailing list