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
341 B 23 lines
1pub type Option(some) { 2 Some(some) 3 None 4} 5 6fn replace(option: Option(a), with: b) -> Option(b) { 7 case option { 8 Some(_) -> Some(with) 9 None -> None 10 } 11} 12 13fn are_equal(lhs: a, rhs: a) -> Bool { 14 lhs == rhs 15} 16 17pub fn main() { 18 are_equal(1, 2) 19 are_equal("hi", "hello") 20 21 replace(Some(10), 20) 22 replace(Some("hi"), "hello") 23}