|
| template<xtd::iterable source_t, xtd::func_callable< xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > func_t> |
| static auto | aggregate (source_t &&source, func_t &&funcfunc) -> xtd::iterable_value_type< source_t > |
| | Applies an accumulator function over a sequence.
|
| template<typename accumulate_t, xtd::iterable source_t, xtd::func_callable< accumulate_t, accumulate_t, xtd::iterable_value_type< source_t > > func_t> |
| static auto | aggregate (source_t &&source, accumulate_t &&seed, func_t &&funcfunc) -> accumulate_t |
| | Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
| template<typename result_t, typename accumulate_t, xtd::iterable source_t, xtd::func_callable< accumulate_t, accumulate_t, xtd::iterable_value_type< source_t > > func_t, xtd::func_callable< result_t, accumulate_t > result_selector_t> |
| static auto | aggregate (source_t &&source, accumulate_t &&seed, func_t &&funcfunc, result_selector_t &&result_selector) -> result_t |
| | 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<xtd::iterable source_t, xtd::predicate_callable< xtd::iterable_value_type< source_t > > predicate_t> |
| static auto | all (source_t &&source, predicate_t &&predicatepredicate) -> bool |
| | Determines whether all elements of a sequence satisfy a condition.
|
| template<xtd::iterable source_t> |
| static auto | any (source_t &&source) noexcept -> bool |
| | Determines whether a sequence contains any elements.
|
| template<xtd::iterable source_t, xtd::predicate_callable< xtd::iterable_value_type< source_t > > predicate_t> |
| static auto | any (source_t &&source, predicate_t &&predicatepredicate) -> bool |
| | Determines whether any element of a sequence satisfies a condition.
|
| template<xtd::iterable source_t> |
| static auto | append (source_t &&source, xtd::iterable_value_type< source_t > &&element) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Appends a value to the end of the sequence.
|
| template<xtd::iterable source_t> |
| static auto | as_enumerable (source_t &&source) noexcept |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<xtd::iterable source_t> |
| static auto | as_enumerable (const source_t &source) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<xtd::iterable source_t> |
| static auto | as_enumerable (source_t &source) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<typename value_t> |
| static auto | as_enumerable (std::initializer_list< value_t > source) noexcept -> xtd::collections::generic::enumerable_generator< value_t > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<std::forward_iterator iterator_t> |
| static auto | as_enumerable (iterator_t first, iterator_t last) noexcept -> xtd::collections::generic::enumerable_generator< typename std::decay< decltype(*first)>::type > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<std::forward_iterator iterator_t> |
| static auto | as_enumerable (iterator_t iteratoriterator, xtd::usize length) noexcept -> xtd::collections::generic::enumerable_generator< typename std::decay< decltype(*iteratoriterator)>::type > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<typename value_t, xtd::usize length> |
| static auto | as_enumerable (const value_t(&array)[length]) noexcept -> xtd::collections::generic::enumerable_generator< value_t > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<typename value_t, xtd::usize length> |
| static auto | as_enumerable (value_t(&array)[length]) noexcept -> xtd::collections::generic::enumerable_generator< value_t > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
template<xtd::iterable source_t>
requires xtd::real_decimal<xtd::iterable_value_type<source_t>> |
| static auto | average (source_t &&source) -> xtd::decimal |
| | Computes the average of a sequence of xtd::decimal values.
|
template<xtd::iterable source_t>
requires xtd::real_double<xtd::iterable_value_type<source_t>> |
| static auto | average (source_t &&source) -> double |
| | Computes the average of a sequence of double values.
|
template<xtd::iterable source_t>
requires xtd::real_single<xtd::iterable_value_type<source_t>> |
| static auto | average (source_t &&source) -> xtd::single |
| | Computes the average of a sequence of float values.
|
template<xtd::iterable source_t>
requires xtd::signed_integer_32<xtd::iterable_value_type<source_t>> |
| static auto | average (source_t &&source) -> double |
| | Computes the average of a sequence of xtd::int32 values.
|
template<xtd::iterable source_t>
requires xtd::signed_integer_64<xtd::iterable_value_type<source_t>> |
| static auto | average (source_t &&source) -> double |
| | Computes the average of a sequence of xtd::int64 values.
|
template<xtd::iterable source_t>
requires std::same_as<xtd::iterable_value_type<source_t>, xtd::optional<xtd::decimal>> |
| static auto | average (source_t &&source) -> xtd::optional< xtd::decimal > |
| | Computes the average of a sequence of optional xtd::decimal values.
|
template<xtd::iterable source_t>
requires std::same_as<xtd::iterable_value_type<source_t>, xtd::optional<double>> |
| static auto | average (source_t &&source) -> xtd::optional< double > |
| | Computes the average of a sequence of optional double values.
|
template<xtd::iterable source_t>
requires std::same_as<xtd::iterable_value_type<source_t>, xtd::optional<xtd::single>> |
| static auto | average (source_t &&source) -> xtd::optional< xtd::single > |
| | Computes the average of a sequence of optional float values.
|
template<xtd::iterable source_t>
requires std::same_as<xtd::iterable_value_type<source_t>, xtd::optional<xtd::int32>> |
| static auto | average (source_t &&source) -> xtd::optional< double > |
| | Computes the average of a sequence of optional xtd::int32 values.
|
template<xtd::iterable source_t>
requires std::same_as<xtd::iterable_value_type<source_t>, xtd::optional<xtd::int64>> |
| static auto | average (source_t &&source) -> xtd::optional< double > |
| | Computes the average of a sequence of optional xtd::int64 values.
|
| template<typename result_t, xtd::iterable source_t> |
| static auto | cast (source_t &&source) -> xtd::collections::generic::enumerable_generator< result_t > |
| | Casts the elements of an xtd::collections::generic::ienumerable to the specified type.
|
| template<xtd::iterable source_t> |
| static auto | chunk (source_t &&source, xtd::usize size) -> xtd::collections::generic::enumerable_generator< xtd::array< xtd::iterable_value_type< source_t > > > |
| | Splits the elements of a sequence into chunks of size at most size.
|
| template<xtd::iterable first_t, xtd::iterable second_t> |
| static auto | concat (first_t &&first, second_t &&second) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< first_t > > |
| | Concatenates two sequences.
|
| template<xtd::iterable source_t> |
| static auto | contains (source_t &&source, const xtd::iterable_value_type< source_t > &value) noexcept -> bool |
| | Determines whether a sequence contains a specified element by using the default equality comparer.
|
| template<xtd::iterable source_t> |
| static auto | contains (source_t &&source, const xtd::iterable_value_type< source_t > &value, const iequality_comparer< xtd::iterable_value_type< source_t > > &comparer) noexcept -> bool |
| | Determines whether a sequence contains a specified element by using a specified equality comparer.
|
| template<xtd::iterable source_t, xtd::func_callable< bool, xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > equater_t> |
| static auto | contains (source_t &&source, const xtd::iterable_value_type< source_t > &value, equater_t &&equater) noexcept -> bool |
| | Determines whether a sequence contains a specified element by using a specified equality comparer.
|
| template<xtd::iterable source_t> |
| static auto | count (source_t &&source) noexcept -> xtd::usize |
| | Returns the number of elements in a sequence.
|
| template<xtd::iterable source_t, xtd::predicate_callable< xtd::iterable_value_type< source_t > > predicate_t> |
| static auto | count (source_t &&source, predicate_t &&predicatepredicate) noexcept -> xtd::usize |
| | Returns a number that represents how many elements in the specified sequence satisfy a condition.
|
| template<xtd::iterable source_t> |
| static auto | count (source_t &&source, xtd::iterable_value_type< source_t > &&value) noexcept -> xtd::usize |
| | Returns the number of elements with the specified value.
|
| template<typename key_t, xtd::iterable source_t, xtd::callable< key_t, xtd::iterable_value_type< source_t > > key_selector_t> |
| static auto | count_by (source_t &&source, key_selector_t &&key_selector) noexcept -> xtd::collections::generic::enumerable_generator< xtd::collections::generic::key_value_pair< key_t, xtd::usize > > |
| | Returns the count of elements in the source sequence grouped by key.
|
| template<typename key_t, xtd::iterable source_t, xtd::callable< key_t, xtd::iterable_value_type< source_t > > key_selector_t> |
| static auto | count_by (source_t &&source, key_selector_t &&key_selector, const iequality_comparer< key_t > &key_comparer) noexcept -> xtd::collections::generic::enumerable_generator< xtd::collections::generic::key_value_pair< key_t, xtd::usize > > |
| | Returns the count of elements in the source sequence grouped by key.
|
| template<typename key_t, xtd::iterable source_t, xtd::callable< key_t, xtd::iterable_value_type< source_t > > key_selector_t, xtd::callable< bool, key_t, key_t > key_equater_t> |
| static auto | count_by (source_t &&source, key_selector_t &&key_selector, key_equater_t &&key_equater) noexcept -> xtd::collections::generic::enumerable_generator< xtd::collections::generic::key_value_pair< key_t, xtd::usize > > |
| | Returns the count of elements in the source sequence grouped by key.
|
| template<xtd::iterable source_t> |
| static auto | default_if_empty (source_t &&source) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.
|
| template<xtd::iterable source_t> |
| static auto | default_if_empty (source_t &&source, const xtd::iterable_value_type< source_t > &default_value) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
|
| template<xtd::iterable source_t> |
| static auto | distinct (source_t &&source) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns distinct elements from a sequence by using the default equality comparer to compare values.
|
| template<xtd::iterable source_t> |
| static auto | distinct (source_t &&source, const iequality_comparer< source_t > &comparer) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values.
|
| template<xtd::iterable source_t, xtd::func_callable< bool, xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > equater_t> |
| static auto | distinct (source_t &&source, equater_t &&equater) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values.
|
| template<xtd::iterable source_t, xtd::predicate_callable< xtd::iterable_value_type< source_t > > prediacte_t> |
| static auto | first_or_default (source_t &&source, prediacte_t &&predicatepredicate, xtd::iterable_value_type< source_t > &&default_value) noexcept -> xtd::iterable_value_type< source_t > |
| | Returns the first element of the sequence that satisfies a condition, or a specified default value if no such element is found.
|
| template<xtd::iterable source_t, xtd::predicate_callable< xtd::iterable_value_type< source_t > > prediacte_t> |
| static auto | first_or_default (source_t &&source, prediacte_t &&predicatepredicate) noexcept -> xtd::iterable_value_type< source_t > |
| | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
| template<xtd::iterable source_t> |
| static auto | first_or_default (source_t &&source, xtd::iterable_value_type< source_t > &&default_value) noexcept -> xtd::iterable_value_type< source_t > |
| | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
| template<xtd::iterable source_t> |
| static auto | first_or_default (source_t &&source) noexcept -> xtd::iterable_value_type< source_t > |
| | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
| template<xtd::iterable source_t> |
| static auto | from (source_t &&source) noexcept |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<xtd::iterable source_t> |
| static auto | from (const source_t &source) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<xtd::iterable source_t> |
| static auto | from (source_t &source) noexcept -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<typename value_t> |
| static auto | from (std::initializer_list< value_t > source) noexcept -> xtd::collections::generic::enumerable_generator< value_t > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<std::forward_iterator iterator_t> |
| static auto | from (iterator_t first, iterator_t last) noexcept -> xtd::collections::generic::enumerable_generator< typename std::decay< decltype(*first)>::type > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<std::forward_iterator iterator_t> |
| static auto | from (iterator_t iteratoriterator, xtd::usize length) noexcept -> xtd::collections::generic::enumerable_generator< typename std::decay< decltype(*iteratoriterator)>::type > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<typename value_t, xtd::usize length> |
| static auto | from (const value_t(&array)[length]) noexcept -> xtd::collections::generic::enumerable_generator< value_t > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
| template<typename value_t, xtd::usize length> |
| static auto | from (value_t(&array)[length]) noexcept -> xtd::collections::generic::enumerable_generator< value_t > |
| | Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
template<xtd::iterable source_t>
requires xtd::numeric<xtd::iterable_value_type<source_t>> |
| static auto | max (source_t &&source) -> xtd::iterable_value_type< source_t > |
| | Returns the maximum value in a sequence of xtd::numeric values.
|
template<xtd::iterable source_t, xtd::callable< xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > selector_t>
requires xtd::numeric<xtd::iterable_value_type<source_t>> |
| static auto | max (source_t &&source, selector_t &&selector) -> xtd::iterable_value_type< source_t > |
| | Returns the maximum value in a sequence of xtd::numeric values.
|
template<typename result_t, xtd::iterable source_t, xtd::callable< result_t, xtd::iterable_value_type< source_t > > selector_t>
requires xtd::numeric<xtd::iterable_value_type<source_t>> |
| static auto | max (source_t &&source, selector_t &&selector) -> result_t |
| | Returns the maximum value in a sequence of xtd::numeric values.
|
template<xtd::iterable source_t>
requires xtd::numeric<xtd::iterable_value_type<source_t>> |
| static auto | min (source_t &&source) -> xtd::iterable_value_type< source_t > |
| | Returns the minimum value in a sequence of xtd::numeric values.
|
template<xtd::iterable source_t, xtd::callable< xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > selector_t>
requires xtd::numeric<xtd::iterable_value_type<source_t>> |
| static auto | min (source_t &&source, selector_t &&selector) -> xtd::iterable_value_type< source_t > |
| | Returns the minimum value in a sequence of xtd::numeric values.
|
template<typename result_t, xtd::iterable source_t, xtd::callable< result_t, xtd::iterable_value_type< source_t > > selector_t>
requires xtd::numeric<xtd::iterable_value_type<source_t>> |
| static auto | min (source_t &&source, selector_t &&selector) -> result_t |
| | Returns the minimum value in a sequence of xtd::numeric values.
|
| template<xtd::iterable source_t> |
| static auto | order (source_t &&source) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in ascending order.
|
| template<xtd::iterable source_t> |
| static auto | order (source_t &&source, const xtd::collections::generic::icomparer< xtd::iterable_value_type< source_t > > &comparer) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in ascending order.
|
| template<xtd::iterable source_t, xtd::func_callable< bool, xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > lesser_t> |
| static auto | order (source_t &&source, lesser_t &&lesser) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in ascending order.
|
| template<typename key_t, xtd::iterable source_t, xtd::callable< key_t, xtd::iterable_value_type< source_t > > key_selector_t> |
| static auto | order_by (source_t &&source, key_selector_t &&key_selector) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in ascending order according to a key.
|
| template<xtd::iterable source_t, xtd::callable< xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > key_selector_t> |
| static auto | order_by (source_t &&source, key_selector_t &&key_selector) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in ascending order according to a key.
|
| template<typename key_t, xtd::iterable source_t, xtd::callable< key_t, xtd::iterable_value_type< source_t > > key_selector_t> |
| static auto | order_by_descending (source_t &&source, key_selector_t &&key_selector) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in descending order according to a key.
|
| template<xtd::iterable source_t, xtd::callable< xtd::iterable_value_type< source_t >, xtd::iterable_value_type< source_t > > key_selector_t> |
| static auto | order_by_descending (source_t &&source, key_selector_t &&key_selector) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Sorts the elements of a sequence in descending order according to a key.
|
| template<xtd::integer integer_t> |
| static auto | range (integer_t count) -> xtd::collections::generic::enumerable_generator< integer_t > |
| | Generates a sequence of integral numbers within a specified range.
|
| template<xtd::integer integer_t> |
| static auto | range (integer_t start, integer_t count) -> xtd::collections::generic::enumerable_generator< integer_t > |
| | Generates a sequence of integral numbers within a specified range.
|
| template<xtd::integer integer_t> |
| static auto | range (integer_t start, integer_t count, integer_t step) -> xtd::collections::generic::enumerable_generator< integer_t > |
| | Generates a sequence of integral numbers within a specified range and step.
|
| template<typename result_t, xtd::iterable source_t> |
| static auto | select (source_t &&source, auto &&selector) -> xtd::collections::generic::enumerable_generator< result_t > |
| | Projects each element of a sequence into a new form.
|
| template<xtd::iterable source_t> |
| static auto | select (source_t &&source, auto &&selector) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Projects each element of a sequence into a new form by incorporating the element's index.
|
| template<xtd::forward_iterable source_t> |
| static auto | shuffle (source_t &&source) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Shuffles the order of the elements of a sequence.
|
| template<xtd::iterable source_t> |
| static auto | skip (source_t &&source, xtd::usize count) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Bypasses a specified number of elements in a sequence and then returns the remaining elements.
|
| template<xtd::iterable source_t> |
| static auto | skip_while (source_t &&source, auto &&predicatepredicate) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
|
| template<xtd::iterable source_t> |
| static auto | take (source_t &&source, xtd::usize count) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns a specified number of contiguous elements from the start of a sequence.
|
| template<xtd::iterable source_t> |
| static auto | take (source_t &&source, const xtd::range &range) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns a specified number of contiguous elements from the start of a sequence.
|
| template<xtd::iterable source_t> |
| static auto | take_while (source_t &&source, auto &&predicatepredicate) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
|
| template<typename source_t> |
| static auto | to_array (const ienumerable< source_t > &source) |
| | Creates a xtd::array <type_t> from an xtd::collections::generic::ienumerable <type_t>.
|
| template<typename source_t> |
| static auto | to_list (const ienumerable< source_t > &source) |
| | Creates a xtd::collections::generic::list <type_t> from an xtd::collections::generic::ienumerable <type_t>.
|
| template<xtd::iterable source_t> |
| static auto | where (source_t &&source, auto &&predicatepredicate) -> xtd::collections::generic::enumerable_generator< xtd::iterable_value_type< source_t > > |
| | Filters a sequence of values based on a predicate.
|