Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


lsublist

The lsublist command returns a sublist of the specified Tcl list that matches the specified Tcl glob pattern.

Syntax

lsublist

<list> <pattern>

Arguments

<list>

Specifies the Tcl list to target with lsublist. Required.

<pattern>

Specifies the pattern to match within the <list> using Tcl glob-style matching. Required.

Examples

In the example below, variable `t' returns "structure signals source".
set window_names "structure signals variables process source wave list dataflow" 
set t [lsublist $window_names s*] 

See also

The set command is a Tcl command. 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