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)

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: