Thursday, May 26, 2011

Racket Programming Langyage http://racket-lang.org/

http://racket-lang.org/


#lang racket
;; Report each unique line from stdin
(let ([saw (make-hash)])
(for ([line (in-lines)])
(unless (hash-ref saw line #f)
(displayln line))
(hash-set! saw line #t)))