# tmux_select:fold/3

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_select.erl#L179
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_select-fold-3/

```
fold/3
-spec fold(fun((Row, Acc) -> Acc), Acc, t(Row)) -> Acc
              when Row :: tmux_model:row().
```

Fold over current rows in order without I/O, using the function, accumulator, selection argument order. Arbitrary results are ordinary Erlang values.

## Parameters

- `Function` (`fun((Row, Acc) -> Acc)`)
- `Accumulator` (`Acc`)
- `Argument3` (`t(Row)`)
