Shows how to use xtd::linq::from method.
#include <xtd/xtd>
auto main() -> int {
auto items = std::vector {"One", "Two", "Three", "Four", "Five"};
const auto& enumerable = from(items);
auto enumerator = enumerable.get_enumerator();
console::write_line(enumerator.
current());
}
const type_t & current() const override
Gets the element in the collection at the current position of the enumerator.
Definition enumerator.hpp:62
bool move_next() override
Advances the enumerator to the next element of the collection.
Definition enumerator.hpp:71