find -package:vector
The 
find function takes a predicate and a structure and returns
the leftmost element of the structure matching the predicate, or
Nothing if there is no such element.
Examples
Basic usage:
>>> find (> 42) [0, 5..]
Just 45
>>> find (> 12) [1..7]
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.
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 
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.
 Find the first matching value.
Subject to fusion
Return the canonical element of an equivalence class 
Point.
Find the first element of a 
Producer that satisfies the
predicate
(find predicate) returns the first element that satisfies the
predicate or 
Nothing if no element satisfies the predicate
 (find predicate) returns the first byte that satisfies the
predicate or 
Nothing if no byte satisfies the predicate
 (find predicate) returns the first character that satisfies
the predicate or 
Nothing if no character satisfies the
predicate
 Find index of elements which satisfy a predicate
>>> find (>0) (ident 3 :: Matrix Double)
[(0,0),(1,1),(2,2)]
find takes a predicate and a sequence and returns the first
element in the sequence matching the predicate, or 
Nothing if
there isn't an element that matches the predicate.
> find (== 5) [1 .. 10]
Just 5
> find (== 15) [1 .. 10]
Nothing
 Search a directory recursively, with recursion controlled by a
RecursionPredicate. Lazily return a sorted list of all files
matching the given 
FilterPredicate. Any errors that occur are
ignored, with warnings printed to 
stderr.
 Return the left-most codepoint in 
ShortText that
satisfies the given predicate.
>>> find (> 'b') "abcdabcd"
Just 'c'
>>> find (> 'b') "ababab"
Nothing
Find the first element in the stream that matches the predicate
Search a directory recursively for all files matching the given
Pattern
List directory recursively (like the POSIX utility "find"). listing is
relative if the path given is relative. If you want to filter out some
results or fold over them you can do that with the returned files. A
more efficient approach is to use one of the other find functions.
For a mandatory attribute field, find key cont looks up the
value of the attribute name key, and applies the continuation
cont to the value.