Functions | |
impl::to_vector | rangeless::fn::to_vector () |
Move elements of an Iterable to std::vector. More... | |
impl::to_seq | rangeless::fn::to_seq () |
Wrap an Iterable , taken by value, as seq yielding elements by-move. More... | |
template<typename Container > | |
impl::to< Container > | rangeless::fn::to (Container dest) |
e.g. auto set_of_ints = fn::seq(...) % ... % fn::to(std::set<int>{}) ; More... | |
impl::counts | rangeless::fn::counts () |
return map: value_type -> size_t More... | |
|
inline |
impl::to<Container> rangeless::fn::to | ( | Container | dest | ) |
|
inline |
Wrap an Iterable
, taken by value, as seq
yielding elements by-move.
This is a dual of to_vector
. It can be used to adapt your own InputRange
as seq
, but it can also be used to wrap a container to force lazy evaluation e.g. std::move(container) % fn::to_seq() % fn::group_adjacent_by(key_fn) % fn::take_first()
|
inline |