6 lines
237 B
Text
6 lines
237 B
Text
|
|
; you can use more than two arguments for +,-,*,/ functions
|
||
|
|
(print (+ 1 3 5 7 9)) ; ==> 25
|
||
|
|
(print (- 1 3 5 7 9)) ; ==> -23
|
||
|
|
(print (* 1 3 5 7 9)) ; ==> 945 - same as (1*3*5*7*9)
|
||
|
|
(print (/ 1 3 5 7 9)) ; ==> 1/945 - same as (((1/3)/5)/7)/9
|