f::const (public)

 f::const k

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

Returns a unary function that ignores its argument and constantly returns k. Example: f::map [f::const 7] [list 1 2 3 4 5] = {7 7 7 7 7}

Parameters:
k (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_functional_api functional_api (test acs-tcl) f::const f::const test_functional_api->f::const f::lambda f::lambda (public) f::const->f::lambda

Testcases:
functional_api
Source code:
    lambda {x} [list return $k]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: