# tmux_select:from_list/2

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

```
from_list(Entity, Rows)
-spec from_list(tmux_schema:entity(), [Row]) -> t(Row)
                   when Row :: tmux_model:row().
```

Validate an ordinary list without rebinding, reordering or deduplicating it.

## Examples

```erlang
1> {ok, P} = tmux_model:pane(#{id => <<"%1">>, width => 120}), ok.
ok
2> S = tmux_select:from_list(pane, [P, P]), ok.
ok
3> tmux_select:size(tmux_select:where(#{width => #{gte => 120}}, S)).
2
4> tmux_select:one(S).
{error,{multiple_matches,#{at_least => 2}}}
```

## Parameters

- `Entity` (`tmux_schema:entity()`)
- `Rows` (`[Row]`)
