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

API Browser

Member group

Count

Declaring type: Operators
Module: System.Linq
Assembly: System.Runtime.dll

Overloads / Variants

Count

func Count<T>(predicate: (T) -> bool) -> int

Extension from Operators.Count

Parameters

Name Type Description
self Iterable<T>
predicate Function

Return value

Int32

Count

func Count<T>() -> int

Extension from Operators.Count

Counts source elements, optionally restricted by the supplied predicate.

Parameters

Name Type Description
self Iterable<T> The source outcome or iterable on which the extension operates.

Return value

Int32