Manual Pages for UNIX Darwin command on man lappend
MyWebUniversity

Manual Pages for UNIX Darwin command on man lappend

lappend(n) Tcl Built-In Commands lappend(n)

NAME

lappend - Append list elements onto a variable

SYNOPSIS

llaappppeenndd varName ?value value value ...?

DESCRIPTION

This command treats the variable given by varName as a list and appends each of the value arguments to that list as a separate element, with spaces between elements. If varName doesn't exist, it is created as a list with elements given by the value arguments. LLaappppeenndd is similar to aappppeenndd except that the values are appended as list elements rather than raw text. This command provides a relatively efficient way to build up

large lists. For example, ``llaappppeenndd aa $$bb'' is much more efficient than

``sseett aa [[ccoonnccaatt $$aa [[lliisstt $$bb]]]]'' when $$aa is long.

SEE ALSO

list(n), lindex(n), linsert(n), llength(n), lset(n) lsort(n), lrange(n) | KKEEYYWWOORRDDSS append, element, list, variable

Tcl lappend(n)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™