Guest User

Untitled

a guest
May 18th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.23 KB | None | 0 0
  1. (define (p= a b)
  2.   (cond
  3.     ((and (number? a)(number? b)) (= a b))
  4.     ((and (list? a)(list? b)) (equal? a b))
  5.     (#t #f)))
  6.  
  7. (define (variable-compare a b)
  8.   (cond
  9.     ((and (string? a)(string? b)) (<? a b))
  10.     (#t #f)))
Add Comment
Please, Sign In to add comment