xtd
0.2.0
Loading...
Searching...
No Matches
enumerable_any.cpp
Shows how to use
xtd::linq::enumerable::all
method.
#include <xtd/xtd>
auto
main() ->
int
{
auto
numbers = list {1, 2};
auto
has_elements = numbers.any();
console::write_line(
"The list {0} empty."
, has_elements ?
"is not"
:
"is"
);
}
// This code produces the following output :
//
// The list is not empty.
Generated on Fri Dec 12 2025 12:14:49 for xtd by
Gammasoft
. All rights reserved.