Something went wrong. Try again.
Actually just three programming languages in a trenchcoat
Something went wrong. Try again.
262 B · 12 lines
12345678910111213proc matcher!(x) { let y = match x case 'a(a) then 2 * a case 'b(b) then 3 * b case a : b then a + b else _ then 5 return y}
proc main!() { exit matcher!('a(2)) + matcher!('b(3)) + matcher!(1 : 2) + matcher!(unit)}