Function Subspace :: sus :: iter :: from_iter

template <class ToType, class IntoIter>
auto from_iter(IntoIter&& into_iter) -> ToType
requires
sus::iter::IntoIteratorAny<IntoIter>
sus::iter::FromIterator<ToType, typename IntoIteratorOutputType<IntoIter>::Item>
sus::mem::IsMoveRef<decltype(into_iter)>

Constructs ToType from a type that can be turned into an Iterator over elements of type ItemType.

This is the other end of Iterator::collect(), and is typically called through calling collect() on an iterator. However this function can be preferrable for some readers, especially in generic template code.