CS 3304: Comparative Languages
FP Foundations, Scheme
[
Course Documents
] : [
FP Foundations, Scheme
]
Previous
Contents
Next
Keyword Index
Primitive Functions
1. Arithmetic: +, -, *, /, abs, sqrt
(+ 5 2) (* 47 (+ (- 5 3) 2))
2.
QUOTE
takes one parameter; returns the parameter without evaluation
Parameters to a function are evaluated before applying the function; use QUOTE to prevent it when inappropriate
QUOTE can be abbreviated with the apostrophe prefix operator
'(a b) (quote (a b))