Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

<>

Name: Anonymous 2008-01-12 14:24

or != ?

Personally, I prefer != because not all inequalities can be described by a combination of less than and greater than.

Name: Anonymous 2008-01-13 9:27

(define (/= a b . r)
  (and (not (= a b))
       (if (pair? r)
           (apply /= (cons b r))
           #t)))



(/= 1 1) => #f
(/= 1 2) => #t
(/= 1 2 2) => #f
(/= 1 2 3) => #t

Name: Anonymous 2008-01-13 9:36

(define (/= a b . r) (and (not (= a b)) (or (null? r) (apply /= b r))))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List