- findOrElse<T, U>(iterable: Iterable<T>, predicate: ((value: T) => value is U), producer: (() => U)): U
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => value is U)
-
- (value: T): value is U
-
Returns value is U
-
producer: (() => U)
Returns U
- findOrElse<T>(iterable: Iterable<T>, predicate: ((value: T) => boolean), producer: (() => T)): T
-
Parameters
-
iterable: Iterable<T>
-
predicate: ((value: T) => boolean)
-
- (value: T): boolean
-
Returns boolean
-
producer: (() => T)
Returns T