filter pred xs
Defined in tcl/ad-functional.tclReturns all elements of the list xs that fulfill the predicate pred. Examples filter even_p {3 1 4 1 5 9 2 6} = {4 2 6} filter [lambda {x} {expr $x>500}] {317 826 912 318} = {826 912} Parameters: pred xs
Returns all elements of the list xs that fulfill the predicate pred.
filter even_p {3 1 4 1 5 9 2 6} = {4 2 6}
filter [lambda {x} {expr $x>500}] {317 826 912 318} = {826 912}