index

The position of a subscript in the subrange.
O(1) ByteString index (subscript) operator, starting from 0. This is a partial function, consider using indexMaybe instead.
O(1) ByteString index (subscript) operator, starting from 0.
O(c) ByteString index (subscript) operator, starting from 0. This is a partial function, consider using indexMaybe instead.
O(1) ByteString index (subscript) operator, starting from 0.
O(1) ShortByteString index (subscript) operator, starting from 0. This is a partial function, consider using indexMaybe instead.
O(n) Text index (subscript) operator, starting from 0.
O(n) stream index (subscript) operator, starting from 0. Properties
index (stream t) n  = index t n
O(n) stream index (subscript) operator, starting from 0.
O(n) Text index (subscript) operator, starting from 0.
The element at the specified position, counting from 0. The argument should thus be a non-negative integer less than the size of the sequence. If the position is out of range, index fails with an error.
xs `index` i = toList xs !! i
Caution: index necessarily delays retrieving the requested element until the result is forced. It can therefore lead to a space leak if the result is stored, unforced, in another structure. To retrieve an element immediately without forcing it, use lookup or (!?).
Given a Hash and a Shift that indicates the level in the tree, compute the index into a Full node or into the bitmap of a BitmapIndexed node.
>>> index 0b0010_0010 0
0b0000_0010
This allows you to filter an IndexedFold, IndexedGetter, IndexedTraversal or IndexedLens based on an index.
>>> ["hello","the","world","!!!"]^?traversed.index 2
Just "world"
return a specific byte indexed by a number from 0 in a bytearray unsafe, no bound checking are done
return a specific byte indexed by a number from 0 in a bytearray unsafe, no bound checking are done
Index into a Producer
>>> index ('a','z') 'e'
4
Retrieve the nth field in the given record. The result is empty if the value cannot be converted to the desired type. Raises an exception if the index is out of bounds. index is a simple convenience function that is equivalent to parseField (v ! idx). If you're certain that the index is not out of bounds, using unsafeIndex is somewhat faster.
(index n) returns the nth element of the container, or Nothing if the container has an insufficient number of elements
(index n) returns the nth byte of the byte stream, or Nothing if the stream has an insufficient number of bytes
(index n) returns the nth character of the text stream, or Nothing if the stream has an insufficient number of characters
Index of the X coordinate
Determines which bucket a given element should inhabit for a particular iteration.