CS 3304: Comparative Languages
FP Foundations, Scheme
[
Course Documents
] : [
FP Foundations, Scheme
]
Previous
Contents
Next
Keyword Index
Predicate Functions
A
predicate
is a function returning a boolean value
#T is true and (), the empty list, is false
By convention, Scheme predicates have names that end in a "?"
1.
EQUAL?
takes two parameters; it returns #T if both parameters are "the same"; works on about everything