Pair<T>.fromList constructor
Pair<T>.fromList (
- List<
T> list
Implementation
Pair.fromList(List<T> list)
: this(list[0], list.length > 1 ? list[1] : list[0]);
Pair.fromList(List<T> list)
: this(list[0], list.length > 1 ? list[1] : list[0]);