Amo/sample-initial.amo

6 lines
114 B
Plaintext

main: Int
main = 1 + distance_squared 4 3
distance_squared: Int, Int -> Int
distance_squared a b = a * a + b * b