MCPcopy Create free account
hub / github.com/apache/arrow-rs / find_first

Function find_first

arrow-avro/src/reader/mod.rs:3634–3636  ·  view source on GitHub ↗
(arr: &[Value], pred: impl Fn(&Value) -> bool)

Source from the content-addressed store, hash-verified

3632 && obj.get("logicalType").and_then(|v| v.as_str()) == Some(lt)
3633 }
3634 fn find_first(arr: &[Value], pred: impl Fn(&Value) -> bool) -> Option<Value> {
3635 arr.iter().find(|v| pred(v)).cloned()
3636 }
3637 fn prim(s: &str) -> Value {
3638 Value::String(s.to_string())
3639 }

Calls 2

findMethod · 0.80
iterMethod · 0.45