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

Function general_greatest

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

Source from the content-addressed store, hash-verified

136}
137
138pub fn general_greatest(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
139 let mut max = &inputs[0];
140
141 for value in inputs.iter().skip(1) {
142 if max.compare(value) == Some(Ordering::Greater) {
143 max = value;
144 }
145 }
146
147 max.to_owned()
148}
149
150pub fn general_least(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
151 let mut least = &inputs[0];

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…