# Libtmux.Window_link.index

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L291
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-window_link-index/

```
val index : t -> int
```

## Parameters

- `arg1` (`t`)

## In other ports

A window's index in its session

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.index`](/en/py/latest/reference/libtmux-window-index/) (property) |
| Ruby | [`LibTmux::WindowLinkSnapshot#index`](/en/ruby/latest/reference/libtmux-windowlinksnapshot-index/) (method) |
| Elixir | [`LibTmux.WindowLink.index`](/en/elixir/latest/reference/libtmux-windowlink-index/) (property). The index belongs to the session placement, `WindowLink`, not to the physical window. |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| Rust | [`window.Window.index`](/en/rs/latest/reference/window-window-index/) (method) |
| Go | [`tmux.Window.Index`](/en/go/latest/reference/tmux-window-index/) (method) |
| Java | [`io.github.libtmux.Window.index`](/en/java/latest/reference/io-github-libtmux-window-window-index/) (method) |
| C# | [`LibTmux.Window.Index`](/en/csharp/latest/reference/libtmux-window-index/) (property) |
| C++ | [`libtmux::Window::index`](/en/cxx/latest/reference/libtmux-window-index-1i4m/) (method) |
| Swift | no equivalent on `Window` |
| Perl | [`LibTmux::WindowLink::index`](/en/perl/latest/reference/libtmux-windowlink-index/) (method). Captured session-relative placement data; this is not a property of the physical window. |

No equivalent is recorded in Lua, PowerShell, Julia, Erlang, Common Lisp, Clojure, Kotlin, Scala or F#.
