Module find_last

Source
Expand description

This method is like find except that it iterates over elements of collection from right to left.

Example

use lodash_rust::find_last;
 
fn main() {
 let res = find_last::new([1, 2, 3, 4].to_vec(), &|x: i32| x % 2 == 1, 3);
 println!("{res}") // Some(3)
}

Functionsยง

new