HomeManualTopicsTypesSymbols
std::any_of
tests all items of a collection
Parameters
- collection
- the collection which items to check
- test
- the test function
- argument (default: NONE)
- additional argument that is passed to the test function
Results
None
Description
Returns std::true if at least one item in the specified collection fullfills the specified criterion.
Example
$persons
hash_table
"Gregory" = 39
"Julia" = 37
"Maria" = 33
"James" = 41
"Sarah" = 38
if
any_of(persons less 40):
println! "true"
:
println! "false"
Output
true
Topic
Collections
See also