MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / apply_pair_pipeline

Function apply_pair_pipeline

tests/binary/fn_pointers/src/main.rs:60–63  ·  view source on GitHub ↗
(pair: Pair<fn(T) -> T, fn(T) -> T>, val: T)

Source from the content-addressed store, hash-verified

58}
59
60fn apply_pair_pipeline<T>(pair: Pair<fn(T) -> T, fn(T) -> T>, val: T) -> T {
61 let intermediate = (pair.first)(val);
62 (pair.second)(intermediate)
63}
64
65fn derivative(f: fn(f64) -> f64, x: f64, h: f64) -> f64 {
66 (f(x + h) - f(x)) / h

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected