Functions on Complex Values

integer? size(any?)

Returns the number of fields/entries of a complex item (array, map, record). Although the parameter type appears as ANY?, the function will actually raise an error if the given item is not complex. The function accepts an empty sequence as argument, in which case it will return the empty sequence. The function will return NULL if its input is NULL.