Description Usage Arguments Details Examples
Use ..
on the right hand side as a shorthand for the left hand side
1 | ":="(e1, e2)
|
e1 |
left hand side |
e2 |
right handside |
:=
is **NOT** meant to be a complete replacement of the '<-' operator,
it's meant to be explicit about growing an object or overwriting it using its
previous value, avoid repeating a variable
name, and saving keystrokes.
It is slightly slower than the standard assignment operator (though we're speaking microseconds). This should not distract the user from the fact that growing an object is often inefficient, especially in a loop.
:=
can in principle be used several times in a statement like
z <- (x := .. + 1) + (y:= .. +1)
but it never makes sense to use it
:=
several times in an assignment such as x := (y := .. + 2)
as all the ..
will be replaced by the name of the variable on the lhs
of the first evaluated :=
in any case.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.