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

Scheme help

Name: Anonymous 2007-12-23 19:37

(define (penis)
    (define variable (read))
    (cond
      (= (string-compare variable "penis") 0) (display "son, that's a penis"))
      (= (string-compare variable "cock") 0) (display "son, that's a cock")
      (else (display "niggerpenis"))))
(penis)


Why does this code not work, /prog/?

Name: Anonymous 2007-12-24 8:06

>>14 is an idiot.

You can use the case construct. Something like:
(define (penis)
   (define variable (read))
   (case variable
      ((penis) (display ...))
      ...)))))))))))))


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