MCPcopy Create free account
hub / github.com/CleanCut/ultimate_rust2 / sploosh

Function sploosh

exercise/testing/src/lib.rs:1–8  ·  view source on GitHub ↗
(x: i32, y: i32, z: i32)

Source from the content-addressed store, hash-verified

1pub fn sploosh(x: i32, y: i32, z: i32) -> i32 {
2 match (x, y, z) {
3 (x, _, _) if x < 0 => 99,
4 (1, 2, 3) => 4,
5 (5, 6, 7) => 3,
6 (x, y, z) => x + y - z,
7 }
8}
9
10pub fn splish(a: i32, b: i32) -> i32 {
11 -a + 3 * b

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected