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
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. |