|
This is usage documentation for for the procedures zlst::add zlst::prune zlst::map (version 1.0). Executable source code has been placed in the public domain. You can find it with an annotated description. Both this usage documentation and the annotated description are copyrighted J Adrian Zimmer, 1998. |
This script defines three list handling functions: zlst::add (a variant of lappend which won't duplicate an element), zlst::prune (a sublist generator) and, zlst::map (a variant of foreach which returns a list).
| zlst::add LISTNAME ELEMENT |
| zlst::prune ?-not? LIST GLOB_PATTERN |
| zlst::map VARS LIST SCRIPT |
This script needs to source the following script:
zproc You can arrange for these required scripts to be sourced first if you like. If you do, none of the following applies. The required scripts are first looked for in the directory named by a variable +/c{ZDIR}. You can define +/c{ZDIR} before sourcing this script, if you like. If not, then the command line arguments are considered one by one to see if they could name a directory containing the required scripts. Finally, if there are no command line arguments the current directory is searched for the required scripts.
This script requires Tcl version 8.0 or later.