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

<=>

Name: Anonymous 2007-10-11 13:04

Let's come up with more operators and make a Touring-complete language out of them!

I'll start with the classic one, the spaceship operator:

<=>, for operands a and b: returns true if a is less than b, if a is greater than b, and if a is equal to b.  Otherwise false.

Name: Anonymous 2007-10-11 14:42

[code)(define (<=> a z)
 (cond
  ((> a z) #t)
  ((= a z) #t)
  ((< a z) #t)
  (else #f)))
[/code]

huh‽

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