# androidx.compose.ui.util

Common/AllAndroid/JVM

## Top-level functions summary

|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#doubleFromBits(kotlin.Long)(bits: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value corresponding to a given bit representation. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#fastCbrt(kotlin.Float)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Fast, approximate cube root function. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#fastMaxOf(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(a: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, b: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, c: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, d: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns the largest of the given values. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#fastMinOf(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(a: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, b: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, c: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, d: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns the smaller of the given values. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#floatFromBits(kotlin.Int)(bits: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value corresponding to a given bit representation. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, stop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)` fraction between them. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, stop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)` fraction between them. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, stop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate between `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)` fraction between them. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#normalizedAngleCos(kotlin.Float)(normalizedDegrees: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Fast, approximate sine function. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#normalizedAngleSin(kotlin.Float)(normalizedDegrees: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Fast, approximate sine function. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)(val1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, val2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Packs two Float values into one Long value for use in inline classes. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packInts(kotlin.Int,kotlin.Int)(val1: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, val2: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Packs two Int values into one Long value for use in inline classes. | Cmn |
| `inline T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#trace(kotlin.String,kotlin.Function0)(sectionName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, block: () -> T)` | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#traceValue(kotlin.String,kotlin.Long)(tag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` | Cmn android |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#unpackAbsFloat1(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Unpacks the first absolute Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#unpackAbsFloat2(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Unpacks the second absolute Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#unpackFloat1(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Unpacks the first Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#unpackFloat2(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Unpacks the second Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#unpackInt1(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Unpacks the first Int value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packInts(kotlin.Int,kotlin.Int)` from its returned ULong. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#unpackInt2(kotlin.Long)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Unpacks the second Int value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packInts(kotlin.Int,kotlin.Int)` from its returned ULong. | Cmn |

## Extension functions summary

|---|---|---|
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).equalsIncludingNaN(kotlin.Float)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Compares two floating-point values for equality, treating `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html` as equal to `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastAll(kotlin.Function1)(predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns `true` if all elements match the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastAll(kotlin.Function1)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastAny(kotlin.Function1)(predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns `true` if at least one element matches the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastAny(kotlin.Function1)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceAtLeast(kotlin.Double)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceAtLeast(kotlin.Double)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceAtLeast(kotlin.Float)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceAtLeast(kotlin.Float)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceAtLeast(kotlin.Int)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceAtLeast(kotlin.Int)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceAtLeast(kotlin.Long)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceAtLeast(kotlin.Long)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceAtMost(kotlin.Double)(maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceAtMost(kotlin.Double)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceAtMost(kotlin.Float)(maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceAtMost(kotlin.Float)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceAtMost(kotlin.Int)(maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceAtMost(kotlin.Int)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceAtMost(kotlin.Long)(maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceAtMost(kotlin.Long)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` Returns this double value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns this float value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns this integer value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)(minimumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, maximumValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns this long value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)`. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, K : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastDistinctBy(kotlin.Function1)(selector: (T) -> K)` Returns a list containing only elements from the given collection having distinct keys returned by the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastDistinctBy(kotlin.Function1)` function. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilter(kotlin.Function1)(predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns a list containing only elements matching the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilter(kotlin.Function1)`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T?>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilterNotNull()()` Returns a list containing all elements that are not null | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilteredMap(kotlin.Function1,kotlin.Function1)( predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, transform: (T) -> R )` Returns a list containing only elements matching the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilteredMap(kotlin.Function1,kotlin.Function1)`, applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilteredMap(kotlin.Function1,kotlin.Function1)` function to each element. | Cmn |
| `inline T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFirst(kotlin.Function1)(predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns the first value that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFirst(kotlin.Function1)` returns `true` for | Cmn |
| `inline T?` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFirstOrNull(kotlin.Function1)(predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns the first value that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFirstOrNull(kotlin.Function1)` returns `true` for or `null` if nothing matches. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFlatMap(kotlin.Function1)(transform: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterable/index.html<R>)` Returns a single list of all elements yielded from results of `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFlatMap(kotlin.Function1)` function being invoked on each element of original collection. | Cmn |
| `inline R` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFold(kotlin.Any,kotlin.Function2)(initial: R, operation: (acc, T) -> R)` Accumulates value starting with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFold(kotlin.Any,kotlin.Function2)` value and applying `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFold(kotlin.Any,kotlin.Function2)` from left to right to current accumulator value and each element. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEach(kotlin.Function1)(action: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Iterates through a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` using the index and calls `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEach(kotlin.Function1)` for each item. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEachIndexed(kotlin.Function2)(action: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Iterates through a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` using the index and calls `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEachIndexed(kotlin.Function2)` for each item. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEachReversed(kotlin.Function1)(action: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Iterates through a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` in reverse order using the index and calls `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEachReversed(kotlin.Function1)` for each item. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastIsFinite()()` Returns `true` if this float is a finite floating-point value; returns `false` otherwise (for `NaN` and infinity). | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastIsFinite()()` Returns `true` if this double is a finite floating-point value; returns `false` otherwise (for `NaN` and infinity). | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)( separator: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, prefix: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, postfix: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, limit: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, truncated: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html, transform: ((T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)? )` Creates a string from all the elements separated using `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` and using the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` if supplied. | Cmn |
| `inline T?` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastLastOrNull(kotlin.Function1)(predicate: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns the last element matching the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastLastOrNull(kotlin.Function1)`, or `null` if no such element was found. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMap(kotlin.Function1)(transform: (T) -> R)` Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMap(kotlin.Function1)` function to each element in the original collection. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapIndexed(kotlin.Function2)(transform: (index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, T) -> R)` Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapIndexed(kotlin.Function2)` function to each element in the original collection. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapIndexedNotNull(kotlin.Function2)(transform: (index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, T) -> R?)` Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapIndexedNotNull(kotlin.Function2)` function to each element in the original collection. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapNotNull(kotlin.Function1)(transform: (T) -> R?)` Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapNotNull(kotlin.Function1)` function to each element in the original collection. | Cmn |
| `inline C` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, C : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html<R>> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapTo(kotlin.collections.MutableCollection,kotlin.Function1)( destination: C, transform: (T) -> R )` Applies the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapTo(kotlin.collections.MutableCollection,kotlin.Function1)` function to each element of the original collection and appends the results to the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapTo(kotlin.collections.MutableCollection,kotlin.Function1)`. | Cmn |
| `inline T?` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<R>> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMaxBy(kotlin.Function1)(selector: (T) -> R)` Returns the first element yielding the largest value of the given function or `null` if there are no elements. | Cmn |
| `inline R` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<R>> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMaxOfOrDefault(kotlin.Comparable,kotlin.Function1)( defaultValue: R, selector: (T) -> R )` Returns the largest value among all values produced by selector function applied to each element in the collection or `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMaxOfOrDefault(kotlin.Comparable,kotlin.Function1)` if there are no elements. | Cmn |
| `inline R?` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<R>> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMaxOfOrNull(kotlin.Function1)(selector: (T) -> R)` Returns the largest value among all values produced by selector function applied to each element in the collection or null if there are no elements. | Cmn |
| `inline T?` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html<R>> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMinByOrNull(kotlin.Function1)(selector: (T) -> R)` Returns the first element yielding the largest value of the given function or `null` if there are no elements. | Cmn |
| `inline S` | `<S : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, T : S> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastReduce(kotlin.Function2)(operation: (acc, T) -> S)` Accumulates value starting with the first element and applying `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastReduce(kotlin.Function2)` from left to right to current accumulator value and each element. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastRoundToInt()()` Returns the closest integer to the argument, tying rounding to positive infinity. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastRoundToInt()()` Returns the closest integer to the argument, tying rounding to positive infinity. | Cmn android |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastSumBy(kotlin.Function1)(selector: (T) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the sum of all values produced by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastSumBy(kotlin.Function1)` function applied to each element in the list. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<V>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, V : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZip(kotlin.collections.List,kotlin.Function2)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>, transform: (a, b) -> V)` Returns a list of values built from the elements of `this` collection and the `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZip(kotlin.collections.List,kotlin.Function2)` collection with the same index using the provided `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZip(kotlin.collections.List,kotlin.Function2)` function applied to each pair of elements. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<R>` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, R : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>.https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZipWithNext(kotlin.Function2)(transform: (T, T) -> R)` Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZipWithNext(kotlin.Function2)` function to each pair of two adjacent elements in this collection. | Cmn |

## Top-level functions

### doubleFromBits

Cmn android Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.+function:doubleFromBits) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun doubleFromBits(bits: Long): Double
```

Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value corresponding to a given bit representation.

### fastCbrt

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCbrt) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun fastCbrt(x: Float): Float
```

Fast, approximate cube root function. Returns the cube root of `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#fastCbrt(kotlin.Float)`; for any `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#fastCbrt(kotlin.Float)` `fastCbrt(-x) == -fastCbrt(x)`.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#fastCbrt(kotlin.Float)` is:

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-p-o-s-i-t-i-v-e_-i-n-f-i-n-i-t-y.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-n-e-g-a-t-i-v-e_-i-n-f-i-n-i-t-y.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- Zero, returns a value close to 0 (\~8.3e-14) with the same sign

The maximum error compared to `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.math/index.html` is:

- 5.9604645E-7 in the range -1f..1f

- 4.7683716E-6 in the range -256f..256f

- 3.8146973E-5 in the range -65_536f..65_536f

- 1.5258789E-4 in the range -16_777_216..16_777_216f

### fastMaxOf

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastMaxOf) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun fastMaxOf(a: Float, b: Float, c: Float, d: Float): Float
```

Returns the largest of the given values. If any value is NaN, returns NaN. Preferred over `kotlin.comparisons.maxOf()` for 4 arguments as it avoids allocating an array because of the varargs.

### fastMinOf

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastMinOf) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun fastMinOf(a: Float, b: Float, c: Float, d: Float): Float
```

Returns the smaller of the given values. If any value is NaN, returns NaN. Preferred over `kotlin.comparisons.minfOf()` for 4 arguments as it avoids allocating an array because of the varargs.

### floatFromBits

Cmn android Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.+function:floatFromBits) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun floatFromBits(bits: Int): Float
```

Returns the `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value corresponding to a given bit representation.

### lerp

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:lerp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lerp(start: Float, stop: Float, fraction: Float): Float
```

Linearly interpolate between `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Float,kotlin.Float,kotlin.Float)` fraction between them.

### lerp

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:lerp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lerp(start: Int, stop: Int, fraction: Float): Int
```

Linearly interpolate between `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Int,kotlin.Int,kotlin.Float)` fraction between them.

### lerp

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:lerp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lerp(start: Long, stop: Long, fraction: Float): Long
```

Linearly interpolate between `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#lerp(kotlin.Long,kotlin.Long,kotlin.Float)` fraction between them.

### normalizedAngleCos

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:normalizedAngleCos) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun normalizedAngleCos(normalizedDegrees: Float): Float
```

Fast, approximate sine function. Returns the sine of the angle `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#normalizedAngleCos(kotlin.Float)` expressed in normalized degrees. For instance, to compute the sine of 180 degrees, you should pass `0.5f` (`180.0f/360.0f`). To compute the cosine of any angle in degrees, call the function this way:

```kotlin
val c = normalizedAngleCos(angleInDegrees * (1.0f / 360.0f))
```

If you are compute the sine and the cosine of an angle at the same time, you can reuse the normalized angle:

```kotlin
val normalizedAngle = angleInDegrees * (1.0f / 360.0f)
val s = normalizedAngleSin(normalizedAngle)
val c = normalizedAngleCos(normalizedAngle)
```

The maximum error of this function in the range 0..360 degrees (0..1 as passed to the function) is 1.63231e-3, or \~0.0935 degrees.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#normalizedAngleCos(kotlin.Float)` is:

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-p-o-s-i-t-i-v-e_-i-n-f-i-n-i-t-y.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-n-e-g-a-t-i-v-e_-i-n-f-i-n-i-t-y.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- 0f, 0.25f, 0.5f, 0.75f, or 1.0f (0, 90, 180, 360 degrees), the returned value is exact

### normalizedAngleSin

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:normalizedAngleSin) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun normalizedAngleSin(normalizedDegrees: Float): Float
```

Fast, approximate sine function. Returns the sine of the angle `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#normalizedAngleSin(kotlin.Float)` expressed in normalized degrees. For instance, to compute the sine of 180 degrees, you should pass `0.5f` (`180.0f/360.0f`). To compute the sine of any angle in degrees, call the function this way:

```kotlin
val s = normalizedAngleSin(angleInDegrees * (1.0f / 360.0f))
```

If you are compute the sine and the cosine of an angle at the same time, you can reuse the normalized angle:

```kotlin
val normalizedAngle = angleInDegrees * (1.0f / 360.0f)
val s = normalizedAngleSin(normalizedAngle)
val c = normalizedAngleCos(normalizedAngle)
```

The maximum error of this function in the range 0..360 degrees (0..1 as passed to the function) is 1.63197e-3, or \~0.0935 degrees.

When `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#normalizedAngleSin(kotlin.Float)` is:

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-p-o-s-i-t-i-v-e_-i-n-f-i-n-i-t-y.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-n-e-g-a-t-i-v-e_-i-n-f-i-n-i-t-y.html`, returns `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`

- 0f, 0.25f, 0.5f, 0.75f, or 1.0f (0, 90, 180, 360 degrees), the returned value is exact

### packFloats

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:packFloats) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun packFloats(val1: Float, val2: Float): Long
```

Packs two Float values into one Long value for use in inline classes.

### packInts

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:packInts) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun packInts(val1: Int, val2: Int): Long
```

Packs two Int values into one Long value for use in inline classes.

### trace

Cmn android Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/+function:trace)

```
inline fun <T : Any?> trace(sectionName: String, block: () -> T): T
```

### traceValue

Cmn android Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/+function:traceValue)

```
fun traceValue(tag: String, value: Long): Unit
```

### unpackAbsFloat1

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:unpackAbsFloat1) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun unpackAbsFloat1(value: Long): Float
```

Unpacks the first absolute Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long.

### unpackAbsFloat2

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:unpackAbsFloat2) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun unpackAbsFloat2(value: Long): Float
```

Unpacks the second absolute Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long.

### unpackFloat1

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:unpackFloat1) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun unpackFloat1(value: Long): Float
```

Unpacks the first Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long.

### unpackFloat2

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:unpackFloat2) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun unpackFloat2(value: Long): Float
```

Unpacks the second Float value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packFloats(kotlin.Float,kotlin.Float)` from its returned Long.

### unpackInt1

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:unpackInt1) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun unpackInt1(value: Long): Int
```

Unpacks the first Int value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packInts(kotlin.Int,kotlin.Int)` from its returned ULong.

### unpackInt2

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.kt+function:unpackInt2) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun unpackInt2(value: Long): Int
```

Unpacks the second Int value in `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#packInts(kotlin.Int,kotlin.Int)` from its returned ULong.

## Extension functions

### Float.equalsIncludingNaN

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:equalsIncludingNaN) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

```
inline fun Float.equalsIncludingNaN(other: Float): Boolean
```

Compares two floating-point values for equality, treating `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html` as equal to `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/-companion/-na-n.html`.

### List.fastAll

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastAll)

```
inline fun <T : Any?> List<T>.fastAll(predicate: (T) -> Boolean): Boolean
```

Returns `true` if all elements match the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastAll(kotlin.Function1)`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastAny

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastAny)

```
inline fun <T : Any?> List<T>.fastAny(predicate: (T) -> Boolean): Boolean
```

Returns `true` if at least one element matches the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastAny(kotlin.Function1)`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### Double.fastCoerceAtLeast

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtLeast) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun Double.fastCoerceAtLeast(minimumValue: Double): Double
```

Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceAtLeast(kotlin.Double)`.

### Float.fastCoerceAtLeast

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtLeast) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun Float.fastCoerceAtLeast(minimumValue: Float): Float
```

Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceAtLeast(kotlin.Float)`.

### Int.fastCoerceAtLeast

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtLeast) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Int.fastCoerceAtLeast(minimumValue: Int): Int
```

Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceAtLeast(kotlin.Int)`.

### Long.fastCoerceAtLeast

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtLeast) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Long.fastCoerceAtLeast(minimumValue: Long): Long
```

Ensures that this value is not less than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceAtLeast(kotlin.Long)`.

### Double.fastCoerceAtMost

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtMost) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun Double.fastCoerceAtMost(maximumValue: Double): Double
```

Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceAtMost(kotlin.Double)`.

### Float.fastCoerceAtMost

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtMost) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun Float.fastCoerceAtMost(maximumValue: Float): Float
```

Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceAtMost(kotlin.Float)`.

### Int.fastCoerceAtMost

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtMost) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Int.fastCoerceAtMost(maximumValue: Int): Int
```

Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceAtMost(kotlin.Int)`.

### Long.fastCoerceAtMost

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceAtMost) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Long.fastCoerceAtMost(maximumValue: Long): Long
```

Ensures that this value is not greater than the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceAtMost(kotlin.Long)`.

### Double.fastCoerceIn

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceIn) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun Double.fastCoerceIn(minimumValue: Double, maximumValue: Double): Double
```

Returns this double value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)`. Unlike `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/index.html`, the range is not validated: the caller must ensure that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)` is less than `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Double).fastCoerceIn(kotlin.Double,kotlin.Double)`.

### Float.fastCoerceIn

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceIn) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
inline fun Float.fastCoerceIn(minimumValue: Float, maximumValue: Float): Float
```

Returns this float value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)`. Unlike `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/index.html`, the range is not validated: the caller must ensure that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)` is less than `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Float).fastCoerceIn(kotlin.Float,kotlin.Float)`.

### Int.fastCoerceIn

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceIn) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Int.fastCoerceIn(minimumValue: Int, maximumValue: Int): Int
```

Returns this integer value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)`. Unlike `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/index.html`, the range is not validated: the caller must ensure that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)` is less than `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Int).fastCoerceIn(kotlin.Int,kotlin.Int)`.

### Long.fastCoerceIn

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastCoerceIn) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Long.fastCoerceIn(minimumValue: Long, maximumValue: Long): Long
```

Returns this long value clamped in the inclusive range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)`. Unlike `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/index.html`, the range is not validated: the caller must ensure that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)` is less than `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.Long).fastCoerceIn(kotlin.Long,kotlin.Long)`.

### List.fastDistinctBy

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastDistinctBy)

```
inline fun <T : Any?, K : Any?> List<T>.fastDistinctBy(selector: (T) -> K): List<T>
```

Returns a list containing only elements from the given collection having distinct keys returned by the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastDistinctBy(kotlin.Function1)` function.

The elements in the resulting list are in the same order as they were in the source collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastFilter

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFilter)

```
inline fun <T : Any?> List<T>.fastFilter(predicate: (T) -> Boolean): List<T>
```

Returns a list containing only elements matching the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilter(kotlin.Function1)`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastFilterNotNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFilterNotNull)

```
fun <T : Any> List<T?>.fastFilterNotNull(): List<T>
```

Returns a list containing all elements that are not null

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastFilteredMap

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFilteredMap)

```
inline fun <T : Any?, R : Any?> List<T>.fastFilteredMap(
    predicate: (T) -> Boolean,
    transform: (T) -> R
): List<R>
```

Returns a list containing only elements matching the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilteredMap(kotlin.Function1,kotlin.Function1)`, applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFilteredMap(kotlin.Function1,kotlin.Function1)` function to each element.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastFirst

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFirst)

```
inline fun <T : Any?> List<T>.fastFirst(predicate: (T) -> Boolean): T
```

Returns the first value that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFirst(kotlin.Function1)` returns `true` for

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-no-such-element-exception/index.html` | if no such element is found |

### List.fastFirstOrNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFirstOrNull)

```
inline fun <T : Any?> List<T>.fastFirstOrNull(predicate: (T) -> Boolean): T?
```

Returns the first value that `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFirstOrNull(kotlin.Function1)` returns `true` for or `null` if nothing matches.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastFlatMap

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFlatMap)

```
inline fun <T : Any?, R : Any?> List<T>.fastFlatMap(transform: (T) -> Iterable<R>): List<R>
```

Returns a single list of all elements yielded from results of `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFlatMap(kotlin.Function1)` function being invoked on each element of original collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastFold

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastFold)

```
inline fun <T : Any?, R : Any?> List<T>.fastFold(initial: R, operation: (acc, T) -> R): R
```

Accumulates value starting with `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFold(kotlin.Any,kotlin.Function2)` value and applying `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFold(kotlin.Any,kotlin.Function2)` from left to right to current accumulator value and each element.

Returns the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastFold(kotlin.Any,kotlin.Function2)` value if the collection is empty.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastForEach

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastForEach)

```
inline fun <T : Any?> List<T>.fastForEach(action: (T) -> Unit): Unit
```

Iterates through a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` using the index and calls `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEach(kotlin.Function1)` for each item. This does not allocate an iterator like `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/index.html`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastForEachIndexed

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastForEachIndexed)

```
inline fun <T : Any?> List<T>.fastForEachIndexed(action: (Int, T) -> Unit): Unit
```

Iterates through a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` using the index and calls `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEachIndexed(kotlin.Function2)` for each item. This does not allocate an iterator like `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/index.html`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastForEachReversed

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastForEachReversed)

```
inline fun <T : Any?> List<T>.fastForEachReversed(action: (T) -> Unit): Unit
```

Iterates through a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` in reverse order using the index and calls `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastForEachReversed(kotlin.Function1)` for each item. This does not allocate an iterator like `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/index.html`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### Float.fastIsFinite

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastIsFinite) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Float.fastIsFinite(): Boolean
```

Returns `true` if this float is a finite floating-point value; returns `false` otherwise (for `NaN` and infinity).

### Double.fastIsFinite

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/MathHelpers.kt+function:fastIsFinite) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
inline fun Double.fastIsFinite(): Boolean
```

Returns `true` if this double is a finite floating-point value; returns `false` otherwise (for `NaN` and infinity).

### List.fastJoinToString

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastJoinToString)

```
fun <T : Any?> List<T>.fastJoinToString(
    separator: CharSequence = ", ",
    prefix: CharSequence = "",
    postfix: CharSequence = "",
    limit: Int = -1,
    truncated: CharSequence = "...",
    transform: ((T) -> CharSequence)? = null
): String
```

Creates a string from all the elements separated using `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` and using the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` if supplied.

If the collection could be huge, you can specify a non-negative value of `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)`, in which case only the first `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` elements will be appended, followed by the `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastJoinToString(kotlin.CharSequence,kotlin.CharSequence,kotlin.CharSequence,kotlin.Int,kotlin.CharSequence,kotlin.Function1)` string (which defaults to "...").

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastLastOrNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastLastOrNull)

```
inline fun <T : Any?> List<T>.fastLastOrNull(predicate: (T) -> Boolean): T?
```

Returns the last element matching the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastLastOrNull(kotlin.Function1)`, or `null` if no such element was found.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMap

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMap)

```
inline fun <T : Any?, R : Any?> List<T>.fastMap(transform: (T) -> R): List<R>
```

Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMap(kotlin.Function1)` function to each element in the original collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMapIndexed

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMapIndexed)

```
inline fun <T : Any?, R : Any?> List<T>.fastMapIndexed(transform: (index: Int, T) -> R): List<R>
```

Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapIndexed(kotlin.Function2)` function to each element in the original collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMapIndexedNotNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMapIndexedNotNull)

```
inline fun <T : Any?, R : Any?> List<T>.fastMapIndexedNotNull(transform: (index: Int, T) -> R?): List<R>
```

Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapIndexedNotNull(kotlin.Function2)` function to each element in the original collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMapNotNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMapNotNull)

```
inline fun <T : Any?, R : Any?> List<T>.fastMapNotNull(transform: (T) -> R?): List<R>
```

Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapNotNull(kotlin.Function1)` function to each element in the original collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMapTo

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMapTo)

```
inline fun <T : Any?, R : Any?, C : MutableCollection<R>> List<T>.fastMapTo(
    destination: C,
    transform: (T) -> R
): C
```

Applies the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapTo(kotlin.collections.MutableCollection,kotlin.Function1)` function to each element of the original collection and appends the results to the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMapTo(kotlin.collections.MutableCollection,kotlin.Function1)`.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMaxBy

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMaxBy)

```
inline fun <T : Any?, R : Comparable<R>> List<T>.fastMaxBy(selector: (T) -> R): T?
```

Returns the first element yielding the largest value of the given function or `null` if there are no elements.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMaxOfOrDefault

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMaxOfOrDefault)

```
inline fun <T : Any?, R : Comparable<R>> List<T>.fastMaxOfOrDefault(
    defaultValue: R,
    selector: (T) -> R
): R
```

Returns the largest value among all values produced by selector function applied to each element in the collection or `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastMaxOfOrDefault(kotlin.Comparable,kotlin.Function1)` if there are no elements.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMaxOfOrNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMaxOfOrNull)

```
inline fun <T : Any?, R : Comparable<R>> List<T>.fastMaxOfOrNull(selector: (T) -> R): R?
```

Returns the largest value among all values produced by selector function applied to each element in the collection or null if there are no elements.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastMinByOrNull

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastMinByOrNull)

```
inline fun <T : Any?, R : Comparable<R>> List<T>.fastMinByOrNull(selector: (T) -> R): T?
```

Returns the first element yielding the largest value of the given function or `null` if there are no elements.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastReduce

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastReduce)

```
inline fun <S : Any?, T : S> List<T>.fastReduce(operation: (acc, T) -> S): S
```

Accumulates value starting with the first element and applying `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastReduce(kotlin.Function2)` from left to right to current accumulator value and each element.

Throws an exception if this collection is empty. If the collection can be empty in an expected way, please use `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/index.html` instead. It returns `null` when its receiver is empty.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

| Parameters |
|---|---|
| `operation: (acc, T) -> S` | function that takes current accumulator value and an element, and calculates the next accumulator value. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unsupported-operation-exception/index.html` | if this collection is empty |

### Float.fastRoundToInt

Cmn android Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.+function:fastRoundToInt) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Float.fastRoundToInt(): Int
```

Returns the closest integer to the argument, tying rounding to positive infinity. Some values are treated differently:

- NaN becomes 0

- -Infinity or any value less than Integer.MIN_VALUE becomes Integer.MIN_VALUE.toFloat()

- +Infinity or any value greater than Integer.MAX_VALUE becomes Integer.MAX_VALUE.toFloat()

### Double.fastRoundToInt

Cmn android Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/InlineClassHelper.+function:fastRoundToInt) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Double.fastRoundToInt(): Int
```

Returns the closest integer to the argument, tying rounding to positive infinity. Some values are treated differently:

- NaN becomes 0

- -Infinity or any value less than Integer.MIN_VALUE becomes Integer.MIN_VALUE.toFloat()

- +Infinity or any value greater than Integer.MAX_VALUE becomes Integer.MAX_VALUE.toFloat()

### List.fastSumBy

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastSumBy)

```
inline fun <T : Any?> List<T>.fastSumBy(selector: (T) -> Int): Int
```

Returns the sum of all values produced by `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastSumBy(kotlin.Function1)` function applied to each element in the list.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastZip

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastZip)

```
inline fun <T : Any?, R : Any?, V : Any?> List<T>.fastZip(other: List<R>, transform: (a, b) -> V): List<V>
```

Returns a list of values built from the elements of `this` collection and the `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZip(kotlin.collections.List,kotlin.Function2)` collection with the same index using the provided `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZip(kotlin.collections.List,kotlin.Function2)` function applied to each pair of elements. The returned list has length of the shortest collection.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.

### List.fastZipWithNext

Cmn Artifact: [androidx.compose.ui:ui-util](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/util/ListUtils.kt+function:fastZipWithNext)

```
inline fun <T : Any?, R : Any?> List<T>.fastZipWithNext(transform: (T, T) -> R): List<R>
```

Returns a list containing the results of applying the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/util/package-summary#(kotlin.collections.List).fastZipWithNext(kotlin.Function2)` function to each pair of two adjacent elements in this collection.

The returned list is empty if this collection contains less than two elements.

**Do not use for collections that come from public APIs**, since they may not support random access in an efficient way, and this method may actually be a lot slower. Only use for collections that are created by code we control and are known to support random access.