Codebase list ohcount / 78cfc95f-7386-42a8-9c13-3be662a077b3/main test / src_dir / example.rkt
78cfc95f-7386-42a8-9c13-3be662a077b3/main

Tree @78cfc95f-7386-42a8-9c13-3be662a077b3/main (Download .tar.gz)

example.rkt @78cfc95f-7386-42a8-9c13-3be662a077b3/mainraw · 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)))