<div class='type'>Function</div>


<a id='references'></a>


<h2 id="lazylayoutkeyindexmap-itemindexrange-intervalcontent">LazyLayoutKeyIndexMap</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun LazyLayoutKeyIndexMap(
    itemIndexRange: IntRange,
    intervalContent: LazyLayoutIntervalContent<*>,
): LazyLayoutKeyIndexMap
```


A `LazyLayoutKeyIndexMap` that keeps a mapping over given `IntRange` of items. Items outside of
given range are considered unknown, with null returned as the index.

#### Parameters

| | |
| --- | --- |
| itemIndexRange | Range of items to keep track of. |
| intervalContent | Source of item information in the form of `LazyLayoutIntervalContent`. |