Provides a set of static methods for querying objects that implement ienumerable <type_t>.
Public Aliases | |
| template<typename type_t> | |
| using | enumerator |
| Represents the enumerator value type. | |
| template<typename type_t> | |
| using | iequality_comparer |
| Represents the ienumerable value type. | |
| template<typename type_t> | |
| using | ienumerable |
| Represents the ienumerable value type. | |
| template<typename type_t> | |
| using | list |
| Represents the list value type. | |
| template<typename key_t, typename value_t> | |
| using | key_value_pair |
| Represents the key value pair value type. | |
Public Static Methods | |
| 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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<typename source_t> | |
| static auto | default_if_empty (const ienumerable< source_t > &source) noexcept |
| Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty. | |
| template<typename source_t> | |
| static auto | default_if_empty (const ienumerable< source_t > &source, const source_t &default_value) noexcept |
| Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty. | |
| template<typename source_t> | |
| static auto | distinct (const ienumerable< source_t > &source) noexcept |
| Returns distinct elements from a sequence by using the default equality comparer to compare values. | |
| template<typename source_t> | |
| static auto | distinct (const ienumerable< source_t > &source, const iequality_comparer< source_t > &comparer) noexcept |
| Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values. | |
| template<typename source_t> | |
| static auto | first_or_default (const ienumerable< source_t > &source, const std::function< bool(const source_t &)> &predicatepredicate, const source_t &default_value) noexcept -> 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<typename source_t> | |
| static auto | first_or_default (const ienumerable< source_t > &source, const std::function< bool(const source_t &)> &predicatepredicate) noexcept -> source_t |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. | |
| template<typename source_t> | |
| static auto | first_or_default (const ienumerable< source_t > &source, const source_t &default_value) noexcept -> source_t |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. | |
| template<typename source_t> | |
| static auto | first_or_default (const ienumerable< source_t > &source) noexcept -> source_t |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. | |
| template<typename source_t> | |
| static const auto & | from (const ienumerable< source_t > &source) noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>. | |
| template<typename source_t> | |
| static auto | from (std::initializer_list< source_t > source) noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>. | |
| template<typename collection_t> | |
| static auto | from (const collection_t &source) noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>. | |
| template<typename input_iterator_t> | |
| static auto | from (input_iterator_t first, input_iterator_t last) noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>. | |
| template<typename input_iterator_t> | |
| static auto | from (input_iterator_t iteratoriterator, xtd::usize length) noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>. | |
| template<typename source_t, xtd::usize length> | |
| static auto | from (const source_t(&array)[length]) noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>. | |
|
template<typename result_t, typename source_t> requires xtd::numeric<result_t> | |
| static auto | max (const ienumerable< source_t > &source, auto &&selector) |
|
template<typename source_t> requires xtd::numeric<source_t> | |
| static auto | max (const ienumerable< source_t > &source, auto &&selector) |
|
template<typename source_t> requires xtd::numeric<source_t> | |
| static auto | max (const ienumerable< source_t > &source) |
|
template<typename result_t, typename source_t> requires xtd::numeric<result_t> | |
| static auto | min (const ienumerable< source_t > &source, auto &&selector) |
|
template<typename source_t> requires xtd::numeric<source_t> | |
| static auto | min (const ienumerable< source_t > &source, auto &&selector) |
|
template<typename source_t> requires xtd::numeric<source_t> | |
| static auto | min (const ienumerable< source_t > &source) |
| template<typename source_t> | |
| static auto | order (const ienumerable< source_t > &source) |
| Sorts the elements of a sequence in ascending order. | |
| template<typename source_t> | |
| static auto | order (const ienumerable< source_t > &source, const xtd::collections::generic::icomparer< source_t > &comparer) |
| Sorts the elements of a sequence in ascending order. | |
| template<typename key_t, typename source_t> | |
| static auto | order_by (const ienumerable< source_t > &source, const std::function< key_t(const source_t &)> &key_selector) |
| Sorts the elements of a sequence in ascending order according to a key. | |
| template<typename source_t> | |
| static auto | order_by (const ienumerable< source_t > &source, const std::function< source_t(const source_t &)> &key_selector) |
| Sorts the elements of a sequence in ascending order according to a key. | |
| template<typename key_t, typename source_t> | |
| static auto | order_by_descending (const ienumerable< source_t > &source, const std::function< key_t(const source_t &)> &key_selector) |
| Sorts the elements of a sequence in descending order according to a key. | |
| template<typename source_t> | |
| static auto | order_by_descending (const ienumerable< source_t > &source, const std::function< source_t(const source_t &)> &key_selector) |
| Sorts the elements of a sequence in descending order according to a key. | |
| template<typename type_t> | |
| static auto | range (type_t count) |
| Generates a sequence of integral numbers within a specified range. | |
| template<typename type_t> | |
| static auto | range (type_t start, type_t count) |
| Generates a sequence of integral numbers within a specified range. | |
| template<typename type_t> | |
| static auto | range (type_t start, type_t count, type_t step) |
| 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<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<typename source_t> | |
| static auto | where (const ienumerable< source_t > &source, auto &&predicatepredicate) |
| Filters a sequence of values based on a predicate. | |
| using xtd::linq::enumerable::enumerator |
Represents the enumerator value type.
| using xtd::linq::enumerable::iequality_comparer |
Represents the ienumerable value type.
| using xtd::linq::enumerable::ienumerable |
Represents the ienumerable value type.
| using xtd::linq::enumerable::list |
Represents the list value type.
| using xtd::linq::enumerable::key_value_pair |
Represents the key value pair value type.
|
staticnodiscard |
Applies an accumulator function over a sequence.
| source_t | The type of the elements of source. |
| source | An xtd::collections::generic::ienumerable <type_t> to aggregate over. |
| func | An accumulator function to be invoked on each element. |
|
staticnodiscard |
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
| accumulate_t | The type of the accumulator value. |
| source_t | The type of the elements of source. |
| source | An xtd::collections::generic::ienumerable <type_t> to aggregate over. |
| seed | The initial accumulator value. |
| func | An accumulator function to be invoked on each element. |
|
staticnodiscard |
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.
| result_t | The type of the resulting value. |
| accumulate_t | The type of the accumulator value. |
| source_t | The type of the elements of source. |
| source | An xtd::collections::generic::ienumerable <type_t> to aggregate over. |
| seed | The initial accumulator value. |
| func | An accumulator function to be invoked on each element. |
| result_Selector | A function to transform the final accumulator value into the result value. |
|
staticnodiscard |
Determines whether all elements of a sequence satisfy a condition.
| source_t | The type of the elements of source. |
| source | An xtd::collections::generic::ienumerable <type_t> that contains the elements to apply the predicate to. |
| predicate | A function to test each element for a condition. |
|
staticnodiscardnoexcept |
Determines whether a sequence contains any elements.
| source_t | The type of the elements of source. |
| source | The xtd::collections::generic::ienumerable <type_t> to check for emptiness. |
| last | The last iterator. |
|
staticnodiscard |
Determines whether any element of a sequence satisfies a condition.
| source_t | The type of the elements of source. |
| source | An xtd::collections::generic::ienumerable <type_t> that contains the elements to apply the predicate to. |
| predicate | A function to test each element for a condition. |
|
staticnodiscardnoexcept |
Appends a value to the end of the sequence.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
| element | The value to append to source. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| input_iterator_t | The type of the source iterators. |
| first | The first iterator. |
| last | The last iterator. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| input_iterator_t | The type of the source iterators. |
| iterator | The iterator. |
| legnth | The le,gth to iterate. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the source array. |
| array | The native array. |
| legnth | The length of the array. |
|
staticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the source array. |
| array | The native array. |
| legnth | The length of the array. |
|
staticnodiscard |
Computes the average of a sequence of xtd::decimal values.
| source | A sequence of xtd::decimal values to calculate the average of. |
| xtd::invalid_operation_exception | `source` contains no elements. |
|
staticnodiscard |
Computes the average of a sequence of double values.
| source | A sequence of double values to calculate the average of. |
| xtd::invalid_operation_exception | `source` contains no elements. |
|
staticnodiscard |
Computes the average of a sequence of float values.
| source | A sequence of float values to calculate the average of. |
| xtd::invalid_operation_exception | `source` contains no elements. |
|
staticnodiscard |
Computes the average of a sequence of xtd::int32 values.
| source | A sequence of xtd::int32 values to calculate the average of. |
| xtd::invalid_operation_exception | `source` contains no elements. |
|
staticnodiscard |
Computes the average of a sequence of xtd::int64 values.
| source | A sequence of xtd::int64 values to calculate the average of. |
| xtd::invalid_operation_exception | `source` contains no elements. |
|
staticnodiscard |
Computes the average of a sequence of optional xtd::decimal values.
| source | A sequence of optional xtd::decimal values to calculate the average of. |
|
staticnodiscard |
Computes the average of a sequence of optional double values.
| source | A sequence of optional double values to calculate the average of. |
|
staticnodiscard |
Computes the average of a sequence of optional float values.
| source | A sequence of optional float values to calculate the average of. |
|
staticnodiscard |
Computes the average of a sequence of optional xtd::int32 values.
| source | A sequence of optional xtd::int32 values to calculate the average of. |
|
staticnodiscard |
Computes the average of a sequence of optional xtd::int64 values.
| source | A sequence of optional xtd::int64 values to calculate the average of. |
|
staticnodiscard |
Casts the elements of an xtd::collections::generic::ienumerable to the specified type.
| result_t | The type of the resulting value. |
| source_t | The type of the elements of source. |
| source | The xtd::collections::generic::ienumerable that contains the elements to be cast to type result_t. |
| xtd::invalid_cast_exception | An element in the sequence cannot be cast to type `result_t`. |
|
staticnodiscard |
Splits the elements of a sequence into chunks of size at most size.
| source_t | The type of the elements of source. |
| source | A sequence of values to chunk. |
| size | The maximum size of each chunk. |
|
staticnodiscardnoexcept |
Concatenates two sequences.
| source_t | The type of the elements of source. |
| first | The first sequence to concatenate. |
| second | The sequence to concatenate to the first sequence. |
|
staticnodiscardnoexcept |
Determines whether a sequence contains a specified element by using the default equality comparer.
| source_t | The type of the elements of source. |
| source | A sequence in which to locate a value. |
| value | The value to locate in the sequence. |
|
staticnodiscardnoexcept |
Determines whether a sequence contains a specified element by using a specified equality comparer.
| source_t | The type of the elements of source. |
| source | A sequence in which to locate a value. |
| value | The value to locate in the sequence. |
| comparer | An equality comparer to compare values. |
|
staticnodiscardnoexcept |
Determines whether a sequence contains a specified element by using a specified equality comparer.
| source_t | The type of the elements of source. |
| source | A sequence in which to locate a value. |
| value | The value to locate in the sequence. |
| equater | An equality comparer to compare values. |
|
staticnodiscardnoexcept |
Returns the number of elements in a sequence.
| source_t | The type of the elements of source. |
| source | A sequence that contains elements to be counted. |
|
staticnodiscardnoexcept |
Returns a number that represents how many elements in the specified sequence satisfy a condition.
| source_t | The type of the elements of source. |
| source | A sequence that contains elements to be tested and counted. |
| predicate | A function to test each element for a condition. |
|
staticnodiscardnoexcept |
Returns the number of elements with the specified value.
| source_t | The type of the elements of source. |
| source | A sequence that contains elements to be tested and counted. |
| value | The value to search for. |
|
staticnodiscardnoexcept |
Returns the count of elements in the source sequence grouped by key.
| source_t | The type of the elements of source. |
| key_t | The type of the key returned by key_selector. |
| source | A sequence that contains elements to be counted. |
| key_selector | A function to extract the key for each element. |
|
staticnodiscardnoexcept |
Returns the count of elements in the source sequence grouped by key.
| source_t | The type of the elements of source. |
| key_t | The type of the key returned by key_selector. |
| source | A sequence that contains elements to be counted. |
| key_selector | A function to extract the key for each element. |
| key_comparer | An equality comparer to compare keys. |
|
staticnodiscardnoexcept |
Returns the count of elements in the source sequence grouped by key.
| source_t | The type of the elements of source. |
| key_t | The type of the key returned by key_selector. |
| source | A sequence that contains elements to be counted. |
| key_selector | A function to extract the key for each element. |
| key_equater | An equality comparer to compare keys. |
|
inlinestaticnodiscardnoexcept |
Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.
| source_t | The type of the elements of source. |
| source | The sequence to return a default value for if it is empty. |
|
inlinestaticnodiscardnoexcept |
Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
| source_t | The type of the elements of source. |
| source | The sequence to return a default value for if it is empty. |
| default_value | The value to return if the sequence is empty. |
|
inlinestaticnodiscardnoexcept |
Returns distinct elements from a sequence by using the default equality comparer to compare values.
| source | The sequence to remove duplicate elements from. |
|
inlinestaticnodiscardnoexcept |
Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values.
| source | The sequence to remove duplicate elements from. |
| comparer | An xtd::collections::generic::iequality_comparer <type_t> to compare values. |
|
inlinestaticnodiscardnoexcept |
Returns the first element of the sequence that satisfies a condition, or a specified default value if no such element is found.
| source_t | The type of the elements of source. |
| source | A sequence of values to return an element from. |
| predicate | A function to test each element for a condition. |
| default_value | The default value to return if the sequence is empty. |
|
inlinestaticnodiscardnoexcept |
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
| source_t | The type of the elements of source. |
| source | A sequence of values to return an element from. |
| predicate | A function to test each element for a condition. |
|
inlinestaticnodiscardnoexcept |
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
| source_t | The type of the elements of source. |
| source | A sequence of values to return an element from. |
| default_value | The default value to return if the sequence is empty. |
|
inlinestaticnodiscardnoexcept |
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
| source_t | The type of the elements of source. |
| source | A sequence of values to return an element from. |
|
inlinestaticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
|
inlinestaticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | A sequence of values. |
|
inlinestaticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| collection_t | The type of the source. |
| source | A sequence of values. |
|
inlinestaticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| input_iterator_t | The type of the source iterators. |
| first | The first iterator. |
| last | The last iterator. |
|
inlinestaticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| input_iterator_t | The type of the source iterators. |
| iterator | The iterator. |
| legnth | The le,gth to iterate. |
|
inlinestaticnodiscardnoexcept |
Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the source array. |
| array | The native array. |
| legnth | The length of the array. |
|
inlinestaticnodiscard |
Sorts the elements of a sequence in ascending order.
| source | A sequence of values to order. |
|
inlinestaticnodiscard |
Sorts the elements of a sequence in ascending order.
| source | A sequence of values to order. |
| comparer | An xtd::collections::generic::icomparer <source_t> to compare keys. |
|
inlinestaticnodiscard |
Sorts the elements of a sequence in ascending order according to a key.
| source | A sequence of values to order. |
| key_selector | A function to extract a key from an element. |
|
inlinestaticnodiscard |
Sorts the elements of a sequence in ascending order according to a key.
| source | A sequence of values to order. |
| key_selector | A function to extract a key from an element. |
|
inlinestaticnodiscard |
Sorts the elements of a sequence in descending order according to a key.
| source | A sequence of values to order. |
| key_selector | A function to extract a key from an element. |
|
inlinestaticnodiscard |
Sorts the elements of a sequence in descending order according to a key.
| source | A sequence of values to order. |
| key_selector | A function to extract a key from an element. |
|
inlinestaticnodiscard |
Generates a sequence of integral numbers within a specified range.
| count | The number of sequential integers to generate. |
| xtd::argument_out_of_range_exception | `count` is less than 0. |
|
inlinestaticnodiscard |
Generates a sequence of integral numbers within a specified range.
| start | The value of the first integer in the sequence. |
| count | The number of sequential integers to generate. |
| xtd::argument_out_of_range_exception | `count` is less than 0. |
|
inlinestaticnodiscard |
Generates a sequence of integral numbers within a specified range and step.
| start | The value of the first integer in the sequence. |
| count | The number of sequential integers to generate. |
| step | The integer number specifying the incrementation. |
| xtd::argument_out_of_range_exception | `count` is less than 0. |
|
staticnodiscard |
Projects each element of a sequence into a new form.
| result_t | The type of the resulting value. |
| source_t | The type of the elements of source. |
| source | A sequence of values to invoke a transform function on. |
| selector | A transform function to apply to each element. |
|
staticnodiscard |
Projects each element of a sequence into a new form by incorporating the element's index.
| result_t | The type of the resulting value. |
| source_t | The type of the elements of source. |
| source | A sequence of values to invoke a transform function on. |
| selector | A transform function to apply to each source element; the second parameter of the function represents the index of the source element. |
|
staticnodiscard |
Creates a xtd::array <type_t> from an xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | The xtd::collections::generic::ienumerable <type_t> to create a xtd::collections::generic::list <type_t> from. |
|
staticnodiscard |
Creates a xtd::collections::generic::list <type_t> from an xtd::collections::generic::ienumerable <type_t>.
| source_t | The type of the elements of source. |
| source | The xtd::collections::generic::ienumerable <type_t> to create a xtd::collections::generic::list <type_t> from. |
|
inlinestaticnodiscard |
Filters a sequence of values based on a predicate.
| source_t | The type of the elements of source. |
| source | A sequence of values to filter. |
| predicate | A function to test each element for a condition. |