MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / general_least

Function general_least

crates/gitql-std/src/general/mod.rs:150–160  ·  view source on GitHub ↗
(inputs: &[Box<dyn Value>])

Source from the content-addressed store, hash-verified

148}
149
150pub fn general_least(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
151 let mut least = &inputs[0];
152
153 for value in inputs.iter().skip(1) {
154 if least.compare(value) == Some(Ordering::Less) {
155 least = value;
156 }
157 }
158
159 least.to_owned()
160}
161
162pub fn general_uuid(_inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
163 let uuid = Uuid::new_v4();

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…