Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

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

Boolean

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.

Return value

Boolean