length -package:vector

Returns the size/length of a finite structure as an Int. The default implementation is optimized for structures that are similar to cons-lists, because there is no general way to do better.
Number of elements in NonEmpty list.
length returns the length of a finite list as an Int. It is an instance of the more general genericLength, the result type of which may be any kind of number.
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(1) The length of a ShortByteString.
The number of elements in the sequence.
O(n) Returns the number of characters in a Text. Subject to fusion.
O(n) Returns the number of characters in a text.
O(n) Returns the number of characters in a Text. Subject to fusion.
Count how many values are in the stream. Subject to fusion
Counts the number of characters encoded in the bytestring. Note that this includes replacement characters.
Counts the number of characters encoded in the bytestring. Note that this includes replacement characters.
Counts the number of characters encoded in the bytestring. Note that this includes replacement characters. The function is linear in the number of bytes in the representation.
O(n). Length in characters. Slow as converts to string.
Count the number of elements in a Producer
Return the length in bytes of a bytearray
Number of elements in NonEmpty list.
Return the length of the container
Return the length of the byte stream in bytes
Return the length of the text stream in characters
Run a stream, keeping its length and its return value.
>>> S.print $ mapped S.length $ chunksOf 3 $ S.each [1..10]
3
3
3
1