tmux_select:from_list/2
Validate an ordinary list without rebinding, reordering or deduplicating it.
Source and package
- Qualified name
-
tmux_select: from _list/2 - Declared in
tmux_select- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_select.erl
- from_list(Entity, Rows) -spec from_list(tmux
_schema: (), [Row]) -> t(Row) when Row :: tmuxentity _model: ().row -
Examples#
1> {ok, P} = tmux_model:pane(#{id => <<"%1">>, width => 120}), ok.ok2> S = tmux_select:from_list(pane, [P, P]), ok.ok3> tmux_select:size(tmux_select:where(#{width => #{gte => 120}}, S)).24> tmux_select:one(S).{error,{multiple_matches,#{at_least => 2}}}- Parameters
-