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

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