template::util::number_list (public)

 template::util::number_list last_number [ start_at ]

Defined in packages/acs-templating/tcl/util-procs.tcl

Return a list of numbers, {1 2 3 ... n}

Parameters:
last_number (required)
start_at (optional, defaults to "0")

Partial Call Graph (max 5 caller/called nodes):
%3 test_number_list number_list (test acs-templating) template::util::number_list template::util::number_list test_number_list->template::util::number_list

Testcases:
number_list
Source code:

    set ret [list]
    for {set i $start_at} { $i <= $last_number } {incr i} {
        lappend ret $i
    }
    return $ret
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: