| 102 | /// <returns>True if any element in the collection matches the prediction, otherwise false.</returns> |
| 103 | template<typename T, typename AllocationType> |
| 104 | static bool Any(const Array<T, AllocationType>& obj, const Function<bool(const T&)>& predicate) |
| 105 | { |
| 106 | for (int32 i = 0; i < obj.Count(); i++) |
| 107 | { |
| 108 | if (predicate(obj[i])) |
| 109 | return true; |
| 110 | } |
| 111 | return false; |
| 112 | } |
| 113 | |
| 114 | /// <summary> |
| 115 | /// All Any operator returns true if all elements match the predicate. It does not select the element, but returns true if all elements are matching. |
no test coverage detected