Codebase list ohcount / bullseye-backports/main test / src_dir / example.rkt
bullseye-backports/main

Tree @bullseye-backports/main (Download .tar.gz)

example.rkt @bullseye-backports/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)))