Function: set:size

set:size is a function alias for length, defined in fns.c.

Signature

(set:size SEQUENCE)

Documentation

Return the length of vector, list or string SEQUENCE.

A byte-code function object is also allowed.

If the string contains multibyte characters, this is not necessarily the number of bytes in the string; it is the number of characters. To get the number of bytes, use string-bytes.

If the length of a list is being computed to compare to a (small) number, the length<, length> and length= functions may be more efficient.

Aliases

set:size