Module tql_lists

Function Index

all/1Conjunction of a list of booleans.
any/1Disjunction of a list of booleans.
droplast_n/2Drops the last N entries from the given list.
intersperse/2Place the given value between all members of the given list.
shuffle/1Shuffle a list.
take/2Take the first N elements from the given list.
uniq/1Returns only unique elements from the given list, filtering out duplicates.

Function Details

all/1

all(Xs::[boolean()]) -> boolean()

Conjunction of a list of booleans. Returns true if and only if all the booleans are true.

any/1

any(Xs::[boolean()]) -> boolean()

Disjunction of a list of booleans. Returns true if at least one of the booleans is true.

droplast_n/2

droplast_n(N::non_neg_integer(), L::[X]) -> [X]

Drops the last N entries from the given list.

intersperse/2

intersperse(X, L::[X]) -> [X]

Place the given value between all members of the given list.

shuffle/1

shuffle(L) -> any()

Shuffle a list.

take/2

take(N::non_neg_integer(), Xs::[X]) -> [X]

Take the first N elements from the given list.

uniq/1

uniq(L::[A]) -> [A]

Returns only unique elements from the given list, filtering out duplicates.

Elements are considered to be different if they do not match (=:=).


Generated by EDoc