_length(t: text): int

Returns the number of bytes in the byte string t.

_length("") == 0
_length("abcdefg") == 7
_length("This is a nice long string.\n") == 28

_length(l: list): int

Returns the number of values in the list l.  (Note that this only counts the top-level entries of l, not those in embedded lists.)

_length(<>) == 0
_length(<"abc", 1, 2, 3,>) == 4
_length(< <"king", "of", "spain">, <"kasparov", "vs.", "deep blue">>) == 2

_length(b: binding): int

Returns the number of <name, value> pairs in b.

_length([]) == 0
_length([ foo = 1, bar = 2, moxy = TRUE, msg = "gotta get a _ to you" ]) == 4
_length([ Cxx/switches/program/shared_libs = "-non_shared" ]) == 1

Kenneth C. Schalk <ken@xorian.net> / Primitive Functions / Vesta SDL Programmer's Reference