find package:text

O(n) The find function takes a predicate and a Text, and returns the first element matching the predicate, or Nothing if there is no such element.
O(n) The find function takes a predicate and a Text, and returns the first element in matching the predicate, or Nothing if there is no such element.
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.
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
O(n) The findBy function takes a predicate and a stream, and returns the first element in matching the predicate, or Nothing if there is no such element. Properties
findBy p . stream = find 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