Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

gleam / test / project_cranelift / src / project_cranelift.gleam
264 B 18 lines
1type Wibble { 2 Wibble(x: Int, y: Int) 3 Wobble(x: Int) 4} 5 6fn sum(w: Wibble) -> Int { 7 case w { 8 Wibble(x:, y:) -> x + y 9 Wobble(x:) -> x 10 } 11} 12 13pub fn main() { 14 let wibble = Wibble(x: 30, y: 35) 15 let wobble = Wobble(x: 40) 16 17 sum(wibble) + sum(wobble) 18}