Usage Documentation

This document is a part of and has the same copyright as the usage documentation for zlst_usage

zlst::prune ?-not? LIST GLOB_PATTERN

Creates a list consisting of those elements of LIST which match GLOB_PATTERN. If the -not switch is used, zlst::prune creates a list consisting of those elements that do not match GLOB_PATTERN.

If the first element of list begins with a hyphen, you use either of the methods described with zproc_args to avoid possible confusion with a switch.

Returns A list

Sample

% lprune {tk_focusFollowsMouse pkg_mkIndex tkwait} tk*
tk_focusFollowsMouse tkwait
% lprune -not {tk_focusFollowsMouse pkg_mkIndex tkwait} tk*
pkg_mkIndex