filter

EveAndersson.com : API Browser : filter

filter

filter pred xs
Defined in tcl/ad-functional.tcl

Returns 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
[ show source ]

Show another procedure:

eve@eveandersson.com