---
title: "forEach"
description: "Iterate over all the anchors."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline fun <T> DraggableAnchors<T>.forEach(block: (key: T, position: Float) -> Unit)
```


Iterate over all the anchors.

#### Parameters

| | |
| --- | --- |
| block | The action to invoke with the key and position |




