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
271 B
Racket

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