O(n) The find function takes a predicate and a
ByteString, and returns the first element in matching the predicate,
or Nothing if there is no such element.
find f p = case findIndex f p of Just n -> Just (p ! n) ; _ -> Nothing
O(n) The find function takes a predicate and a
ByteString, and returns the first element in matching the predicate,
or Nothing if there is no such element.
O(n) The find function takes a predicate and a
ShortByteString, and returns the first element in matching the
predicate, or Nothing if there is no such element.
find f p = case findIndex f p of Just n -> Just (p ! n) ; _ -> Nothing
O(n) The findIndexEnd function takes a predicate and a
ByteString and returns the index of the last element in the
ByteString satisfying the predicate.
O(n) The findIndexEnd function takes a predicate and a
ByteString and returns the index of the last element in the
ByteString satisfying the predicate.
O(n) The findIndex function takes a predicate and a
ShortByteString and returns the index of the first element in
the ShortByteString satisfying the predicate.