MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / first_value

Function first_value

crates/opencode-plugin/src/subprocess/loader.rs:516–518  ·  view source on GitHub ↗
(source: &Map<String, Value>, keys: &[&str])

Source from the content-addressed store, hash-verified

514}
515
516fn first_value(source: &Map<String, Value>, keys: &[&str]) -> Option<Value> {
517 keys.iter().find_map(|key| source.get(*key).cloned())
518}
519
520fn copy_first(
521 source: &Map<String, Value>,

Callers 3

copy_firstFunction · 0.85
synthesize_modelFunction · 0.85
synthesize_providerFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected