len
return the length of a string/vector or size of an object. The size of an
object is the number of key-value pairs in it.
(len "")
➜0
(len " hello ")
➜7
(len [1 2 3])
➜3
(len {foo "bar" hello "world"})
➜2
value
is an arbitrary expression.
This form returns the length of the string (number of bytes).
value
is an arbitrary expression.
This form returns the number of elements in the given vector.
value
is an arbitrary expression.
This form returns the number of key-value pairs in the given object.