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

Common Lisp is too hard.

Name: Anonymous 2007-12-04 19:06

I still can't get my head around prefix notation. I heard Scheme is easier though. Seriously, why do practitioners of Lisp-like languages claim it's so good? I honestly cannot see the big deal, it's an old, slow, awkward and overall clunky language to use.

Name: Anonymous 2007-12-04 21:36


(defun fizz-buzz (n)
  (cond ((and (= 0 (mod n 3)) (= 0 (mod n 5))) "FizzBuzz")
        ((= 0 (mod n 3)) "Fizz")
        ((= 0 (mod n 5)) "Buzz")
        (t n)))

(mapc #'(lambda (x)
          (format t "~a~%" x))
      (mapcar #'fizz-buzz
              (loop for i from 1 to 100 collect i)))

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