# libtmux:index

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/model.lisp#L182
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-index/

```
(index entity)

Primary method: libtmux:pane:
(index (entity libtmux:pane))

Primary method: libtmux:window-link:
(index (entity libtmux:window-link))
```

Return the nonnegative captured index and presence, without I/O.

## Methods

### `(index (entity libtmux:pane))`

### `(index (entity libtmux:window-link))`

## Parameters

- `entity` (for `index(entity)`)
- `entity` (`libtmux:pane`) (for `Primary method: libtmux:pane`)
- `entity` (`libtmux:window-link`) (for `Primary method: libtmux:window-link`)

## Guides

Pages that discuss `index`.

- [Captures and identity](/en/lisp/latest/concepts/captures/)
