Member group
Any
Declaring type: Operators
Module: System.Linq
Assembly: System.Runtime.dll
Overloads / Variants
Any
func Any<T>(predicate: (T) -> bool) -> bool
Extension from Operators.Any
Parameters
| Name | Type | Description |
|---|---|---|
self |
Iterable<T> | |
predicate |
Function |
Return value
Any
func Any<T>() -> bool
Extension from Operators.Any
Tests whether the source contains an element, or an element satisfying the supplied predicate.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Iterable<T> | The source outcome or iterable on which the extension operates. |