Codebase list ohcount / upstream/latest test / src_dir / example.rkt
upstream/latest

Tree @upstream/latest (Download .tar.gz)

example.rkt @upstream/latestraw · history · blame

;; language declaration commented out until someone extends the
;; parser to support it:

;; #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)))