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

☆(´∀`)★SICP★(,,゚Д゚)☆

Name: Anonymous 2007-04-02 6:54 ID:d9euNV6I

so why has the guy on the cover put on his robe and wizard hat?

Name: Anonymous 2007-04-02 7:08 ID:1/jYB4bB

>>1
He is demonstrating a magical peice of software.

Name: Anonymous 2007-04-02 9:47 ID:ELENx1IH

(define (queens board-size)
  (define empty-board ())
  (define (row pos) (car pos))
  (define (col pos) (cdr pos))
  (define (adjoin-position row col rest)
    (cons (cons row col) rest))
  (define (safe-row? new rest)
    (null? (filter (lambda (pos)
                     (= (row pos)
                        (row new)))
                   rest)))
  (define (safe-diag? new rest)
    (null? (filter (lambda (pos)
                     (= (abs (- (row pos)
                                (row new)))
                        (abs (- (col pos)
                                (col new)))))
                   rest)))
  (define (safe? col positions)
    (let ((new  (car positions))
          (rest (cdr positions)))
      (and (safe-row?  new rest)
           (safe-diag? new rest))))
  (define (queen-cols k)
    (if (= k 0)
        (list empty-board)
        (filter
         (lambda (positions) (safe? k positions))
         (flatmap
          (lambda (rest-of-queens)
            (map (lambda (new-row)
                   (adjoin-position new-row k rest-of-queens))
                 (enumerate-interval 1 board-size)))
          (queen-cols (- k 1))))))
  (queen-cols board-size))

Name: Anonymous 2007-04-02 9:58 ID:1/jYB4bB

>>3
fucking queen

Name: Anonymous 2007-04-02 10:29 ID:d9euNV6I

One word, )))))))))))))))))))))). Thread over.

Name: Anonymous 2007-04-02 13:21 ID:1/jYB4bB

>>5
if you have that many close brackets learn to write functions lol

Name: Anonymous 2007-04-02 13:26 ID:ELENx1IH

>>5
What does this have to do with the topic? Or is this just your way to say "I haven't read SICP"?

Name: Anonymous 2007-04-02 13:28 ID:wV0CuYH+

>>7
Shut up, Mr. Six Closing Parentheses.

Name: Anonymous 2007-04-02 13:33 ID:ELENx1IH

>>8
Welcome to the '80s! You may be initially confused by our high technology, such as paren-matching display editors, but you will eventually find out that they are here to help you.

Name: Anonymous 2007-04-02 13:51 ID:wV0CuYH+

>>9
Goode Sire, I use Vim.  However, that is no excuse to use some crappy language (any language but Haskell) that FORCED ADDITOIN OF PARETNSES THERAD OVER!!!

Name: Anonymous 2007-04-02 13:52 ID:1/jYB4bB

>>10
rofl how about this

ONE WORD FORCED ARBITRARY AND UGLY OF SYNTAX HASKELL OVER

Name: Anonymous 2007-04-02 13:56 ID:ELENx1IH

>>10
That's very fitting, because I also use Haskell due to hueg amounts of static typing kool-aid, but still I think that its syntax is absolutely horrible.

Name: Anonymous 2007-04-05 3:40 ID:EMczEBe+

>>10
70's abandonware aren't actual editors ok

Name: Anonymous 2007-04-05 5:06 ID:BMIErK3T

>>13
I agree, that's why I don't use vi, I use Vim.

Name: Anonymous 2009-01-14 13:12

LISP

Name: Anonymous 2010-11-16 2:26

Name: Anonymous 2012-03-25 9:58

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: Sgt.Kabu⛰珏kiman尜䮑 2012-05-28 23:58

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2012-10-02 5:02

bamp

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