lastOrNull

open fun lastOrNull(): T?

Get the last element or null if not found.

Return

T the last element or null


open fun lastOrNull(condition: T.() -> Boolean): T?

Get the last element by condition or null if not found

Return

T the last element or null

Parameters

condition

filter condition