# LibTmux::Model::WindowLink.index

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Fields.rakumod#L36
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowlink-index/

```
method index(--> Count:D)
```

Captured [`window_index`](/en/tmux/latest/catalog/formats/window_index/); local uint access.

Captured [`window_index`](/en/tmux/latest/catalog/formats/window_index/); local uint access.

## 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` |
| OCaml | [`Libtmux.Window_link.index`](/en/ocaml/latest/reference/libtmux-window_link-index/) (function) |
| 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#.
