Member group
Last
Declaring type: Operators
Module: System.Linq
Assembly: System.Runtime.dll
Overloads / Variants
Last
func Last<T>(predicate: (T) -> bool) -> Optional<T>
Extension from Operators.Last
Parameters
| Name | Type | Description |
|---|---|---|
self |
Iterable<T> | |
predicate |
Function |
Return value
Optional<T>
Last
func Last<T>() -> Optional<T>
Extension from Operators.Last
Returns the last source element matching the optional predicate, or None when none exists.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Iterable<T> | The source outcome or iterable on which the extension operates. |
Return value
Optional<T>