RosettaCodeData/Task/Arithmetic-Integer/Komodo/arithmetic-integer.komodo

3 lines
116 B
Text
Raw Permalink Normal View History

2024-10-16 18:07:41 -07:00
let arithmetic(a, b) := (a + b, a - b, a * b, a / b, a % b, a ** b)
assert(arithmetic(5, 2) = (7, 3, 10, 2, 1, 25))