datastructures v0.2.6 Data.Seq

Summary

Types

Functions

all?(sequence, fun \\ fn x -> x end)
all?(t, (any -> boolean)) :: boolean
any?(sequence, fun \\ fn x -> x end)
any?(t, (any -> as_boolean(any))) :: boolean
at(sequence, index, default \\ nil)
at(t, non_neg_integer, any) :: any
contains?(sequence, value, fun \\ fn x -> x end)
contains?(t, any, (any -> any)) :: boolean
count(sequence)
count(t) :: non_neg_integer
count(sequence, predicate)
count(t, (any -> boolean)) :: non_neg_integer
drop(sequence, count)
drop(t, non_neg_integer) :: t
drop_while(sequence, fun)
drop_while(t, (any -> as_boolean(term))) :: t
each(sequence, fun)
each(t, (any -> none)) :: none
empty?(sequence)
empty?(t) :: boolean
find(sequence, if_none \\ nil, fun)
find(t, any, (any -> as_boolean(any))) :: any
find_index(sequence, fun)
find_index(t, (any -> as_boolean(any))) :: any
find_value(sequence, if_none \\ nil, fun)
find_value(t, any, (any -> any)) :: any
first(sequence)
flat_map(sequence, fun)
flat_map(t, (any -> any)) :: t
group_by(seq, into \\ [], fun)
into(seq, out)
join(seq, string)
join(t, String.t) :: String.t
last(sequence)
last(t) :: term
map(sequence, fun)
map(t, (any -> any)) :: t
max(sequence)
max(t) :: any
max(sequence, fun)
max(t, (any -> any)) :: any
min(sequence)
min(t) :: any
min(sequence, fun)
min(t, (any -> any)) :: any
next(sequence)
reduce(sequence, fun)
reduce(t, (any, any -> any)) :: any
reduce(sequence, acc, fun)
reduce(t, any, (any, any -> any)) :: any
reject(sequence, fun)
reject(t, (any -> as_boolean(term))) :: t
reverse(sequence)
reverse(t) :: t
select(sequence, fun)
select(t, (any -> as_boolean(term))) :: t
sort(sequence)
sort(t) :: t
sort(sequence, fun)
sort(t, (any, any -> boolean)) :: t
split(seq, count)
split(t, integer) :: {[term], [term]}
take(sequence, count)
take(t, non_neg_integer) :: t
take_while(sequence, fun)
take_while(t, (any -> as_boolean(any))) :: t
to_list(sequence)
to_list(t) :: list
uniq(sequence, fun \\ fn x -> x end)
uniq(t, (any -> any)) :: t
with_index(sequence)
zip(sequence1, sequence2)
zip(t, t) :: t