You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/precalc-demo/test.rkt

18 lines
265 B
Racket

#lang precalc-demo
fun f(x, y, z) = x + x + x * (y + y) + y * z - z - z
fun g(z) = f(z, z, z) # line comment
g(-10) # = 300
fun h() = g(10)
h() # = 300
fun k(x) = x / 10 / 10 / (x / x)
k(h()) # = 3
k(-10 * (15 + 3 * 5)) # = -3
/*
multiline comment
0 / 0 / 0
*/