Idris2Doc : Data.Linear.List

Data.Linear.List

(source)

Reexports

importpublic Data.Linear.Token

Definitions

filter1 : (a->F1sBool) ->Lista->F1s (Lista)
  Filters a list using a predicate based on mutable
linear state.

Totality: total
Visibility: export
find1 : (a->F1sBool) ->Lista->F1s (Maybea)
  Returns the first value in a list, for which the given
linear predicate returns `True`.

Totality: total
Visibility: export
span1 : (a->F1sBool) ->Lista->F1s (Lista, Lista)
  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: export
break1 : (a->F1sBool) ->Lista->F1s (Lista, Lista)
  Like `span1` but returns the longest prefix, for which the
predicate does *not* hold.

Totality: total
Visibility: export
partition1 : (a->F1sBool) ->Lista->F1s (Lista, Lista)
  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: export
mapMaybe1 : (a->F1s (Maybeb)) ->Lista->F1s (Listb)
  Using a `Maybe` function to map and filter a list in one go.

Totality: total
Visibility: export
replicate1 : Nat->F1sa->F1s (Lista)
  Fills a list with values from a stateful linear computation.

Totality: total
Visibility: export