f::scanl (public)

 f::scanl f e xs

Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl

takes a binary function f, a start element e and a list {x1 x2 ...} and returns {e (f e x1) (f (f e x1) x2) ...}

Parameters:
f
e
xs

Partial Call Graph (max 5 caller/called nodes):
%3 f::products f::products (public) f::scanl f::scanl f::products->f::scanl f::scanl1 f::scanl1 (public) f::scanl1->f::scanl f::sums f::sums (public) f::sums->f::scanl

Testcases:
No testcase defined.
Source code:
    set current_element $e
    set result [list $e]
    foreach x $xs {
        set current_element [$f $current_element $x]
        lappend result $current_element
    }
    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: