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):
- Testcases:
- functional_api