# flatten

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/list/function-flatten/

**function** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
fn flatten<T: Clone>(source: &super::ChangeSet<T>) -> Vec<super::ItemChange<T>>
```

The changes of the change set as changes of one item each (`Flatten`, `ItemChangeEnumerator`):
an added range becomes additions and a removed range or a clear removals, numbered from the
index of the range, or from the last index known when the range has none.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/change_set_ex.rs#L12)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
