llength



llength

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO
KEYWORDS

___________________________

NAME

llength − Count the number of elements in a list

SYNOPSIS

llength list ___________________________

DESCRIPTION

Treats list as a list and returns a decimal string giving the number of elements in it.

EXAMPLES

The result is the number of elements:

% llength {a b c d e}
5
% llength {a b c}
3
% llength {}
0

Elements are not guaranteed to be exactly words in a dictionary sense of course, especially when quoting is used:

% llength {a b {c d} e}
4
% llength {a b { } c d e}
6

An empty list is not necessarily an empty string:

% set var { }; puts "[string length $var],[llength $var]"
1,0

SEE ALSO

list(n), lappend(n), lindex(n), linsert(n), lsearch(3), lset(n), lsort(n), lrange(n), lreplace(n)

KEYWORDS

element, list, length




More Linux Commands

manpages/systemd-hostnamed.8.html
systemd-hostnamed(8) Host name bus mechanism (Man Page).....
systemd-hostnamed is a system service that may be used as a mechanism to change the systems hostname. systemd-hostnamed is automatically activated on request an

manpages/XBaseFontNameListOfFontSet.3.html
XBaseFontNameListOfFontSet(3) - obtain fontset information
The XFontsOfFontSet function returns a list of one or more XFontStructs and font names for the fonts used by the Xmb and Xwc layers for the given font set. A li

manpages/Tcl_ExprDouble.3.html
Tcl_ExprDouble(3) - evaluate an expression - Linux man page
These four procedures all evaluate the expression given by the expr argument and return the result in one of four different forms. The expression can have any o

manpages/XIDeleteProperty.3.html
XIDeleteProperty(3) - change, retrieve or delete a device's
The XIGetProperty function returns the actual type of the property; the actual format of the property; the number of 8-bit, 16-bit, or 32-bit items transferred;

manpages/safe_loadTk.n.html
safe_loadTk(n) Load Tk into a safe interpreter. (Man Page)
Safe Tk is based on Safe Tcl, which provides a mechanism that allows restricted and mediated access to auto-loading and packages for safe interpreters. Safe Tk

manpages/gnutls_pkcs11_copy_x509_crt.3.html
gnutls_pkcs11_copy_x509_crt(3) - API function (Man Page)....
This function will copy a certificate into a PKCS 11 token specified by a URL. The certificate can be marked as trusted or not. RETURNS On success, GNUTLS_E_SUC

manpages/default_colors.3ncurses.html
default_colors(3ncurses) - use terminal's default colors....
The use_default_colors() and assume_default_colors() functions are extensions to the curses library. They are used with terminals that support ISO 6429 color, o

manpages/xauth.1.html
xauth(1) - X authority file utility - Linux manual page.....
The xauth program is used to edit and display the authorization information used in connecting to the X server. This program is usually used to extract authoriz

manpages/grub2-kbdcomp.1.html
grub2-kbdcomp(1) generate a GRUB keyboard layout file.......
grub-kbdcomp processes a X keyboard layout description in keymaps(5) format into a format that can be used by GRUBs keymap command. Make GRUB keyboard layout fi

manpages/gluNurbsProperty.3gl.html
gluNurbsProperty(3gl) - set a NURBS property (Man Page).....
gluNurbsProperty is used to control properties stored in a NURBS object. These properties affect the way that a NURBS curve is rendered. The accepted values for

manpages/Xcomposite.3.html
Xcomposite(3) - X Composite Extension library (Man Page)....
The composite extension provides several related mechanisms: Per-hierarchy storage The rendering of an entire hierarchy of windows is redirected to off-screen s

manpages/geometry.n.html
geometry(n) - Geometrical computations - Linux manual page
The following Tcl variables are either set or used by Tk at various times in its execution: tk_library This variable holds the file name for a directory contain





We can't live, work or learn in freedom unless the software we use is free.