index package:text

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.
O(n) Stream index (subscript) operator, starting from 0. Properties
indexI (stream t) n = index t n
O(n) The findIndex function takes a predicate and a Text and returns the index of the first element in the Text satisfying the predicate.
Unchecked read of an immutable array. May return garbage or crash on an out-of-bounds access.
The findIndex function takes a predicate and a stream and returns the index of the first element in the stream satisfying the predicate. Properties
findIndex p . stream  = findIndex p
The findIndexI function takes a predicate and a stream and returns the index of the first element in the stream satisfying the predicate. Properties
findIndexI p . stream = findIndex p