# $listItems->prev()

> Moves the cursor to the previous element and returns it

- Source: `src/Toolkit/Iterator.php#L80` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Toolkit/Iterator.php#L80>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$listItems->prev(): TValue
```

## Return type

`TValue`

## Parent class

`Wagnerwagner\Merx\ListItems` inherited from `Kirby\Toolkit\Iterator`
