Technical data

lshift
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
327
lshift
The
lshift
command takes a Tcl list as argument and shifts it in-place one place to
the left, eliminating the 0th element. The number of shift places may also be
specified. Returns nothing.
Syntax
lshift
<list> [<amount>]
Arguments
<list>
Specifies the Tcl list to target with
lshift
. Required.
<amount>
Specifies more than one place to shift. Optional. Default is 1.
Examples
proc myfunc args {
# throws away the first two arguments
lshift args 2
...
}
See also
See the Tcl man pages (Main window:
Help > Tcl Man Pages
) for details.