# Module cloudi_lists

- Description
- Function Index
- Function Details

### List operations

.

Copyright © 2009-2020 Michael Truog

Version: 2.0.1 Dec 3 2021 17:15:32 ------------------------------------------------------------------------

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### List operations

## Function Index

delete_all/2 | #### lists:delete/2 functionality, but all instances are deleted. .
delete_checked/2 | #### lists:delete/2 functionality, but returns false when an element is not deleted. .
index/2 | #### Find the index of the first occurrence of an item within a list. The integer index returned is 1-based.
iodata_to_list/1 | #### Convert iodata to a list of bytes and return the size of the list. .
itera/3 | #### Iterate on elements of a list with an accumulator. .
itera2/4 | #### Iterate on elements of a list with two accumulators. .
member_all/2 | #### lists:member/2 functionality, but with a list of elements where all must be present. .
member_any/2 | #### lists:member/2 functionality, but with a list of elements where one must be present. .
split/2 | #### lists:split/2 functionality, but without bounds checking. .
take_values/2 | #### cloudi_proplists:take_values/2 functionality, but with any tuple list. .

## Function Details

### delete_all/2

`delete_all(Elem::any(), List::list()) -> list()`

#### lists:delete/2 functionality, but all instances are deleted.

### delete_checked/2

`delete_checked(Elem::any(), List::list()) -> list() | false`

#### lists:delete/2 functionality, but returns false when an element is not deleted.

### index/2

`index(Item::any(), L::list()) -> undefined | pos_integer()`

#### Find the index of the first occurrence of an item within a list.

The integer index returned is 1-based.

### iodata_to_list/1

`iodata_to_list(IOData::iodata()) -> {Size::non_neg_integer(), Bytes::[byte()]}`

#### Convert iodata to a list of bytes and return the size of the list.

### itera/3

`itera(F::fun((any(), any(), fun((any()) -> any())) -> any()), Acc::any(), T::list()) -> any()`

#### Iterate on elements of a list with an accumulator.

### itera2/4

`itera2(F::fun((any(), any(), any(), fun((any(), any()) -> {any(), any()})) -> {any(), any()}), Acc0::any(), Acc1::any(), T::list()) -> {any(), any()}`

#### Iterate on elements of a list with two accumulators.

### member_all/2

`member_all(ElemL::list(), List::list()) -> boolean()`

#### lists:member/2 functionality, but with a list of elements where all must be present.

### member_any/2

`member_any(ElemL::list(), List::list()) -> boolean()`

#### lists:member/2 functionality, but with a list of elements where one must be present.

### split/2

`split(N, L) -> {L1, L2}`

- `N = non_neg_integer()`
- `L = [E]`
- `L1 = [E]`
- `L2 = [E]`
- `E = any()`

#### lists:split/2 functionality, but without bounds checking.

### take_values/2

`take_values(DefaultList::[{any(), any()}], List::[{any(), any()}]) -> list()`

#### cloudi_proplists:take_values/2 functionality, but with any tuple list.

Generated by EDoc