map

one of the documented procedures in this installation of the ACS
Usage:
map   f   xs
What it does:
takes a function f and a list {x1 x2 x3 ...} and returns the list { f x1, f x2, f x3, ...}
Defined in: /web/philip/tcl/ad-functional.tcl

Source code:


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


philg@mit.edu