template::util::spellcheck::get_sorted_list_with_unique_elements (public)
template::util::spellcheck::get_sorted_list_with_unique_elements \ -the_list the_list
Defined in packages/acs-templating/tcl/spellcheck-procs.tcl
Converts a list of possibly duplicate elements (words) into a sorted list where no duplicates exist.
- Switches:
- -the_list (required)
- The list of possibly duplicate elements.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set sorted_list [lsort -dictionary $the_list] set new_list [list] set old_element "XXinitial_conditionXX" foreach list_element $sorted_list { if { $list_element ne $old_element } { lappend new_list $list_element } set old_element $list_element } return $new_listXQL Not present: Generic, PostgreSQL, Oracle