filter

one of the documented procedures in this installation of the ACS
Usage:
filter   pred   xs
What it does:
returns all elements of xs that fulfill the predicate pred
Defined in: /web/philip/tcl/ad-functional.tcl

Source code:


    set result {}
    foreach x $xs {
	if { [eval_unary $pred $x] } {
	    lappend result $x
	}
    }
    return $result


philg@mit.edu