filter1 : (a -> F1 s Bool) -> List a -> F1 s (List a) Filters a list using a predicate based on mutable
linear state.
Totality: total
Visibility: exportfind1 : (a -> F1 s Bool) -> List a -> F1 s (Maybe a) Returns the first value in a list, for which the given
linear predicate returns `True`.
Totality: total
Visibility: exportspan1 : (a -> F1 s Bool) -> List a -> F1 s (List a, List a) Returns the longest (possibly empty) prefix of the given list
for which the given predicate returns `True`.
The second value of the pair returns the remainder of
the list.
Totality: total
Visibility: exportbreak1 : (a -> F1 s Bool) -> List a -> F1 s (List a, List a) Like `span1` but returns the longest prefix, for which the
predicate does *not* hold.
Totality: total
Visibility: exportpartition1 : (a -> F1 s Bool) -> List a -> F1 s (List a, List a) Partitions the values in a list according to the given
linear predicate.
Returns a pair of lists, the first of which holds the values
for which the predicate returned `False`. All other values
are returned in the second list.
Totality: total
Visibility: exportmapMaybe1 : (a -> F1 s (Maybe b)) -> List a -> F1 s (List b) Using a `Maybe` function to map and filter a list in one go.
Totality: total
Visibility: exportreplicate1 : Nat -> F1 s a -> F1 s (List a) Fills a list with values from a stateful linear computation.
Totality: total
Visibility: export