length -package:bytestring -package:text -package:utf8-string -package:hedgehog is:exact -package:base

The number of elements in the sequence.
O(1) Yield the length of the vector.
Length of a Bundle
Length of a Bundle
O(1) Yield the length of the vector.
Length of the mutable vector.
Length of the mutable vector.
O(1) Yield the length of the vector.
Length of the mutable vector.
O(1) Yield the length of the vector.
Length of the mutable vector.
O(1) Yield the length of the vector.
Length of the mutable vector.
Count how many values are in the stream. Subject to fusion
Return the length in bytes of a bytearray
Count the number of elements in a Producer
Number of elements in NonEmpty list.
Returns the size/length of a finite structure as an Int. The default implementation just counts elements starting with the leftmost. Instances for structures that can compute the element count faster than via element-by-element counting, should provide a specialised implementation.

Examples

Basic usage:
>>> length []
0
>>> length ['a', 'b', 'c']
3

>>> length [1..]
* Hangs forever *
Return the length of the container
Return the length of the byte stream in bytes
Return the length of the text stream in characters
Returns the size/length of a finite structure as an Int. The default implementation just counts elements starting with the leftmost. Instances for structures that can compute the element count faster than via element-by-element counting, should provide a specialised implementation.

Examples

Basic usage:
>>> length []
0
>>> length ['a', 'b', 'c']
3

>>> length [1..]
* Hangs forever *
@since base-4.8.0.0