# TmuxCommandList.then(_:)

- **Module:** TmuxCommandList
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/CommandList.swift#L25
- **Page:** https://libtmux.org/reference/swift/tmuxcommandlist-then(_-)/

```
TmuxCommandList.then(_:)(command: TmuxCommand) -> TmuxCommandList
```

Appends a command, returning a new list.

Chaining builds a value; nothing is sent until the list is run, so a
half-built chain has no effect on the server.
