# list.extract-map()

The `list.extract-map()` gets and removes the map from the list.

{% code lineNumbers="true" %}

```scss
// Functions.
@use 'get/get.map.function';
@use 'remove/remove.map.function';

// The `list.extract-map()` function.
@function extract-map($list) {
  @return (map: get.map($list), list: remove.map($list));
}
```

{% endcode %}

Github files.

### Parameters

#### **`$list`**&#x20;

A list from which the map is extracted.

### Return

The return value is a map with extracted from [`$list`](#usdlist) map in `map` key, and list without `map`.

## Examples

```scss
// Use.
@use 'angular-package/sass/list';

// Examples.


```
