#t
or false #f
)
have names that end in a "?". Define a predicate
(modequiv? x y m)
that takes three integers
x, y and m and returns #t if x modulo m is equal to
y modulo m. For example:
> (modequiv? 23 21 8) #f > (modequiv? 23 31 8) #t
(closer a b x)
that returns a
if a
is
closer to x
than b
is, and
returns b
otherwise. For example:
> (closer 10 23 19) 23 > (closer 10 33 19) 10