Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


lshift

The lshift command takes a Tcl list as an 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 the number of places 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 (Help > Tcl Man Pages) for details.

 

Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase