len -package:base
only for byte arrays. This is a JS byte array method
Coding list-length recursively. Again, we map directly to an SMTLib
function.
O(1). Returns the length of a structure as an
Int. On
infinite lists returns the
Ints
maxBound.
>>> len $ one 42
1
>>> len $ slist [1..3]
3
>>> len $ infiniteSlist [1..]
9223372036854775807
the length (#) operation. If the object is not a string, Lua
will try its metamethod. If there is a metamethod, Lua calls it with
the object as argument, and the result of the call (always adjusted to
one value) is the result of the operation. If there is no metamethod
but the object is a table, then Lua uses the table length operation
(see §3.4.7). Otherwise, Lua raises an error.
Length of type list expressed as type level naturals from
fixed-vector.
O(1) length returns the length of a ByteString as an
Int.
O(c) length returns the length of a ByteString as an
Int64
O(n) Returns the number of characters in a
Text.
Replace an invalid input byte with the Unicode replacement character
U+FFFD.
O(1) Return the length of a
Text in units of
Word8. This is useful for sizing a target array appropriately
before using
unsafeCopyToPtr.