Welcome to the CHICKEN Scheme pasting service

Babby's First Chicken 4 Script added by merlincorey on Tue Jul 7 21:45:15 2015

#!/usr/bin/csi -script
;;;
;;; Lunch determination program
;;;

(define DEFAULT-ARGUMENTS '("flame broiler"
                            "jersey mikes"
                            "fish grill"
                            "habit grill"))

(define (choice sequence)
  (list-ref sequence (random (length sequence))))

(define (main args)
  (display "You should go to lunch at ")
  (display (choice (if (null? args)
                       DEFAULT-ARGUMENTS
                       args)))
  (newline))

(cond-expand
 (chicken-script
  (main (command-line-arguments)))
 (else))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the equality predicate for strings in R5RS?
Visually impaired? Let me spell it for you (wav file) download WAV