template<typename enumerable_t, typename source_t>
class xtd::collections::generic::extensions::enumerable< enumerable_t, source_t >
Provides a set of static methods for querying objects that implement ienumerable <type_t>.
- Definition
template<typename type_t>
Provides a set of static methods for querying objects that implement ienumerable <type_t>.
Definition enumerable.hpp:31
Represent a static object. A static class can't be instantiated (constructors are deleted).
Definition static.hpp:20
- Header
#include <xtd/linq/enumerable
- Namespace
- xtd::linq
- Library
- xtd.core
|
source_t | aggregate (const std::function< source_t(const source_t &, const source_t &)> &func) const |
| Applies an accumulator function over a sequence.
|
|
template<typename func_t > |
source_t | aggregate (const func_t &func) const |
| Applies an accumulator function over a sequence.
|
|
template<typename accumulate_t > |
accumulate_t | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const source_t &, const accumulate_t &)> &func) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
|
template<typename accumulate_t , typename func_t > |
accumulate_t | aggregate (const accumulate_t &seed, const func_t &func) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
|
template<typename accumulate_t , typename result_t > |
result_t | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const source_t &, const accumulate_t &)> &func, const std::function< result_t(const accumulate_t &)> &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
template<typename accumulate_t , typename result_t , typename func_t , typename result_selector_t > |
result_t | aggregate (const accumulate_t &seed, const func_t &func, const result_selector_t &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
template<typename accumulate_t , typename func_t , typename result_selector_t > |
accumulate_t | aggregate (const accumulate_t &seed, const func_t &func, const result_selector_t &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
bool | all (const std::function< bool(const source_t &)> &predicate) const |
| Determines whether all elements of a sequence satisfy a condition.
|
|
template<typename predicate_t > |
bool | all (const predicate_t &predicate) const |
| Determines whether all elements of a sequence satisfy a condition.
|
|
bool | any () const noexcept |
| Determines whether a sequence contains any elements.
|
|
bool | any (const std::function< bool(const source_t &)> &predicate) const |
| Determines whether any element of a sequence satisfies a condition.
|
|
template<typename predicate_t > |
bool | any (const predicate_t &predicate) const |
| Determines whether any elements of a sequence satisfy a condition.
|
|
xtd::linq::enumerable_collection< source_t > | append (const source_t &element) const noexcept |
| Appends a value to the end of the sequence.
|
|
xtd::linq::enumerable_collection< source_t > | as_enumerable () const noexcept |
| Returns the input typed as xtd::collection::generic::ienumerable <type_t>.
|
|