---
title: "Epsilon Immutable"
canonical_url: "https://apidocs.sportradar.com/resources/epsilon-sdk/docs/modules/immutable"
markdown_url: "https://apidocs.sportradar.com/resources/epsilon-sdk/docs/modules/immutable.md"
last_updated: "2026-06-15T10:09:12Z"
---

# Epsilon Immutable

The `epsilon-immutable` module provides utility functions and extensions for working with [Kotlinx Immutable Collections](https://github.com/Kotlin/kotlinx.collections.immutable) in a Kotlin Multiplatform environment.

> **Note**
>
> This module is especially useful in state-driven UI architectures where immutable data structures help reduce accidental mutation.

## Features

- **Collection Utilities**: Helper functions for filtering, sorting, and mapping immutable collections.
- **Builders**: Simplified creation of immutable lists and maps.
- **Performance**: Leveraging immutable collections to ensure thread safety and performance in reactive UI frameworks like Jetpack Compose.

## Supported Platforms

- Android
- iOS
- JVM

## Key Components

### Immutable Mapping & Filtering

Extensions to perform standard collection operations while maintaining the immutability of the result.

**Example usage**

```kotlin
val immutableList = persistentListOf(1, 2, 3)
val filtered = immutableList.filterToImmutable { it > 1 }
```

### Immutable Sorting

Utilities to sort immutable collections and return a new immutable collection.

## Usage

Add the dependency to your `commonMain`:

```kotlin
dependencies {
    implementation("ag.sportradar.mobile.epsilon:epsilon-immutable:<version>")
}
```
